Bump the npm-dependencies group with 43 updates #236
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: Run unit & storybook tests | |
on: | |
pull_request: | |
push: | |
branches-ignore: | |
- main | |
- release-* | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
unit-tests: | |
uses: nationalarchives/tdr-github-actions/.github/workflows/tdr_test.yml@main | |
with: | |
repo-name: tdr-components | |
test-command: | | |
npm ci | |
npm t | |
secrets: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
interaction-and-accessibility: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "16.x" | |
- name: Install dependencies | |
run: yarn | |
- name: Install Playwright | |
run: npx playwright install --with-deps | |
- name: Build Storybook | |
run: yarn build-storybook | |
- 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 tcp:6006 && yarn test-storybook" |