Skip to content

generate screenshots on CI #1

generate screenshots on CI

generate screenshots on CI #1

Workflow file for this run

name: 'Storybook Tests'
on:
workflow_call:
inputs:
node-version:
required: true
type: string
jobs:
test:
defaults:
run:
working-directory: ui
shell: bash
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
- name: install deps
uses: ./.github/actions/cached-ui-deps
with:
node-version: ${{ inputs.node-version }}
- name: Install Playwright
run: npx playwright install --with-deps
- name: Build Storybook
run: yarn build-storybook --quiet
- name: Serve Storybook and run tests
run: |
npx concurrently --kill-others --success first -n "SB,TEST" \
"npx http-server storybook-static --port 6006 --silent" \
"npx wait-on tcp:6006 && yarn test-storybook -u"
- name: Push updated screenshots
uses: actions/checkout@v4
- run: |

Check failure on line 38 in .github/workflows/storybook-tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/storybook-tests.yml

Invalid workflow file

You have an error in your yaml syntax on line 38
git config user.name github-actions
git config user.email github-actions@github.com
git add \*.png
git commit -m "update screenshots [skip ci]"
git push
- uses: actions/upload-artifact@v4
name: 'Upload test report'
if: ${{ failure() }}
with:
name: storybook-tests-report
path: ui/test-reports/