Fix/issue toc audit #102
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: 'Storybook Tests' | |
on: | |
pull_request: | |
types: [opened, reopened] | |
workflow_dispatch: | |
jobs: | |
test: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '^18.9.0' | |
- name: Setup yarn | |
run: npm install -g yarn | |
- name: Install dependencies | |
env: | |
NODE_OPTIONS: '--openssl-legacy-provider' | |
run: yarn install | |
- name: Install Playwright | |
run: npx playwright install --with-deps | |
- name: Build Storybook | |
env: | |
NODE_OPTIONS: '--openssl-legacy-provider' | |
run: yarn build-storybook --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" \ | |
# "npx wait-on tcp:6006 && yarn test-storybook" |