-
Notifications
You must be signed in to change notification settings - Fork 33
45 lines (41 loc) · 1.42 KB
/
cypress.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Cypress browser tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
browser-test:
name: Cypress browser tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: pnpm i
- run: pnpm build
- run: >
npx concurrently -k -s first -n "SBESM,SB16,SB17,SB18,TEST" -c "magenta,blue,red,cyan,green"
"pnpm --filter 'react-esm-example' start-server"
"pnpm --filter 'react-16-example' start-server"
"pnpm --filter 'react-17-example' start-server"
"pnpm --filter 'react-18-example' start-server"
"pnpm --filter 'storybook-addon-performance' cypress:run"
# Upload the videos and screenshots
- name: Upload artifacts
uses: actions/upload-artifact@v3
# We want to upload the recording even if the last step failed
# https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#job-status-check-functions
if: always()
with:
name: cypress-videos
path: packages/storybook-addon-performance/cypress/videos