-
Notifications
You must be signed in to change notification settings - Fork 15
44 lines (38 loc) · 1.1 KB
/
e2e.yaml
File metadata and controls
44 lines (38 loc) · 1.1 KB
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
name: E2E Test
on: push
jobs:
cypress-run:
runs-on: ubuntu-22.04
strategy:
matrix:
containers: [0, 1, 2, 3, 4, 5]
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v5
with:
node-version: '20.20.0'
- name: Install dependencies
run: yarn install --force
- name: Cypress run
uses: cypress-io/github-action@v6
with:
build: yarn build
start: yarn start
wait-on: 'http://localhost:3000'
wait-on-timeout: 120
command: npm run cy:run:parallel
env:
CI: true
DEBUG: 'cypress-split,find-cypress-specs'
SPLIT: 6
SPLIT_INDEX: ${{ matrix.containers }}
GITHUB_RUN_ID: ${{ github.run_id }}
GITHUB_RUN_ATTEMPT: ${{ github.run_attempt }}
GITHUB_JOB: ${{ github.job }}
SPLIT_FILE_SIZE: true
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}