Gjeninnfører bruk av stories i komponentoversikt #1665
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Component Test Runner" | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm install | |
- name: Install Playwright | |
working-directory: ./apps/storybook | |
run: npx playwright install --with-deps | |
- name: Build Storybook | |
working-directory: ./apps/storybook | |
run: npm run build | |
- name: Serve Storybook and run tests | |
working-directory: ./apps/storybook | |
run: | | |
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \ | |
"npx http-server storybook-static --port 6006 --silent" \ | |
"npx wait-on tcp:6006 && npm run test-storybook" |