-
Notifications
You must be signed in to change notification settings - Fork 119
30 lines (30 loc) · 923 Bytes
/
e2e.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
name: Cypress E2E
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
cypress-E2E:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3 # If you're using actions/checkout@v3 you must set persist-credentials to false in most cases for the deployment to work correctly.
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: true
- uses: cypress-io/github-action@v5
with:
start: pnpm run start
wait-on: 'http://localhost:3000'
# the entire command will automatically be prefixed with "npm"
# and we need the second "npm" to execute "cypress run ..." command line
command-prefix: 'percy exec -- npx'
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}