Skip to content

Merge pull request #214 from brainstormforce/version-bump-1.3.0 #96

Merge pull request #214 from brainstormforce/version-bump-1.3.0

Merge pull request #214 from brainstormforce/version-bump-1.3.0 #96

name: 'Storybook Tests'
on: push
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Install Playwright
run: npx playwright install --with-deps
- name: Build force-ui
run: npm run build --silent
- name: Build Storybook
run: npm run build-storybook --silent
- name: Serve Storybook and run tests
run: |
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx http-server storybook-static --port 6006 --silent" \
"npx wait-on tcp:127.0.0.1:6006 && yarn test-storybook"