-
-
Notifications
You must be signed in to change notification settings - Fork 400
28 lines (26 loc) · 898 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
name: Cypress Tests
on: [pull_request]
jobs:
cypress-run:
runs-on: ubuntu-latest
container: cypress/browsers:node14.19.0-chrome100-ff99-edge
steps:
- name: Checkout
uses: actions/checkout@v3
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/[email protected]
with:
install-command: yarn install
build: yarn build:test
start: yarn e2e:start
wait-on: 'http://localhost:3000'
wait-on-timeout: 120
browser: chrome
record: true
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}