Skip to content

feat/test storybook #10

feat/test storybook

feat/test storybook #10

Workflow file for this run

name: Storybook Tests
on:
pull_request:
branches:
- '*'
- '*/*'
- '**'
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: yarn
- name: Install Playwright
run: npx playwright install --with-deps
- name: Build Storybook
run: yarn storybook:build --quiet
- 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 http-get://127.0.0.1:6006 && yarn storybook:test"
user-flow:
if: secrets.CHROMATIC_PROJECT_TOKEN != ''

Check failure on line 31 in .github/workflows/storybook-test.yml

View workflow run for this annotation

GitHub Actions / Storybook Tests

Invalid workflow file

The workflow is not valid. .github/workflows/storybook-test.yml (Line: 31, Col: 9): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.CHROMATIC_PROJECT_TOKEN != ''
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: yarn
- name: Publish to Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
autoAcceptChanges: "main"
buildScriptName: "storybook:chromatic"
env:
CI: true