-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 902 Bytes
/
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
name: Cypress + Percy
on: [push]
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4.1.0
- name: Cypress
uses: cypress-io/github-action@v6
with:
build: yarn build
start: yarn start
quiet: true
command-prefix: percy exec --
env:
PERCY_TOKEN: "${{ secrets.PERCY_TOKEN }}"
CYPRESS_DEFAULT_COMMAND_TIMEOUT: 10000
- name: Upload Cypress videos
uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-videos
path: cypress/videos
- name: Upload Cypress screenshots
uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-screenshots
path: cypress/screenshots