-
Notifications
You must be signed in to change notification settings - Fork 12
46 lines (37 loc) · 1.13 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
name: Cypress End-to-End Tests
on:
pull_request:
branches: ["*"]
workflow_dispatch:
jobs:
cypress:
runs-on: ubuntu-latest
steps:
- name: 🛫 Checkout
uses: actions/checkout@v3
- name: 🏗 Set up NodeJS 18.14.0
uses: actions/setup-node@v3
with:
node-version: 18.14.0
cache: 'npm'
- name: 💻 Run Cypress
uses: cypress-io/github-action@v5
with:
start: npm run dev
wait-on: http://localhost:9200/
wait-on-timeout: 40000
headed: false
record: true
parallel: true
env:
# For recording and parallelization to work you must set your CYPRESS_RECORD_KEY
# in GitHub repo → Settings → Secrets → Actions
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# pass GitHub token to detect new build vs re-run build
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Codecov
uses: codecov/codecov-action@v5
with:
flags: E2E
directory: ./coverage
token: ${{ secrets.CODECOV_TOKEN }}