chore(deps): update devdependencies (non-major) (minor) #720
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: CI tests | |
on: | |
push: | |
branches: | |
- 'main' | |
merge_group: | |
pull_request: | |
jobs: | |
test: | |
timeout-minutes: 20 | |
runs-on: ubuntu-latest | |
concurrency: | |
group: storybook-tests-${{ github.head_ref || github.ref }} | |
# we do not cancel the workflows in progress as the runs are quite fast. | |
cancel-in-progress: false | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: yarn | |
- name: Check code style and linting | |
run: yarn prettier:check && yarn lint | |
- name: Build # ensures type-checks and compiles | |
run: yarn build | |
- name: Get Latest playwright version | |
run: echo "PLAYWRIGHT_VERSION=$(npm show playwright version)" >> $GITHUB_ENV | |
- name: Cache playwright binaries | |
uses: actions/cache@v4 | |
id: playwright-cache | |
with: | |
path: | | |
~/.cache/ms-playwright | |
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} | |
- name: Install playwright | |
run: npx playwright install --with-deps | |
if: steps.playwright-cache.outputs.cache-hit != 'true' | |
- name: Build storybook | |
run: yarn storybook:build --quiet | |
- name: Run storybook 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://127.0.0.1:6006 && yarn storybook:test" |