Skip to content

Gjeninnfører bruk av stories i komponentoversikt #1665

Gjeninnfører bruk av stories i komponentoversikt

Gjeninnfører bruk av stories i komponentoversikt #1665

Workflow file for this run

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"