28
28
) ||
29
29
github.event.before
30
30
}}
31
- shouldRunParallel : ${{ secrets.CYPRESS_RECORD_KEY != '' && !(github.event_name == 'push' && github.ref == 'refs/heads/develop') }}
32
31
jobs :
33
32
cache :
34
33
runs-on : ubuntu-latest
39
38
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
40
39
- uses : pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
41
40
- name : Setup Node.js
42
- uses : actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
41
+ uses : actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
43
42
with :
44
43
node-version-file : ' .node-version'
45
44
- name : Cache snapshots
59
58
60
59
- name : Install dependencies
61
60
if : ${{ steps.cache-snapshot.outputs.cache-hit != 'true' }}
62
- uses : cypress-io/github-action@df7484c5ba85def7eef30db301afa688187bc378 # v6.7.2
61
+ uses : cypress-io/github-action@0da3c06ed8217b912deea9d8ee69630baed1737e # v6.7.6
63
62
with :
64
63
# just perform install
65
64
runTests : false
@@ -80,15 +79,15 @@ jobs:
80
79
strategy :
81
80
fail-fast : false
82
81
matrix :
83
- containers : [1, 2, 3, 4]
82
+ containers : [1, 2, 3, 4, 5 ]
84
83
steps :
85
84
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
86
85
87
86
- uses : pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
88
87
# uses version from "packageManager" field in package.json
89
88
90
89
- name : Setup Node.js
91
- uses : actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
90
+ uses : actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
92
91
with :
93
92
node-version-file : ' .node-version'
94
93
@@ -101,7 +100,7 @@ jobs:
101
100
key : ${{ runner.os }}-snapshots-${{ env.targetHash }}
102
101
103
102
- name : Install dependencies
104
- uses : cypress-io/github-action@df7484c5ba85def7eef30db301afa688187bc378 # v6.7.2
103
+ uses : cypress-io/github-action@0da3c06ed8217b912deea9d8ee69630baed1737e # v6.7.6
105
104
with :
106
105
runTests : false
107
106
@@ -117,28 +116,27 @@ jobs:
117
116
# Install NPM dependencies, cache them correctly
118
117
# and run all Cypress tests
119
118
- name : Cypress run
120
- uses : cypress-io/github-action@df7484c5ba85def7eef30db301afa688187bc378 # v6.7.2
119
+ uses : cypress-io/github-action@0da3c06ed8217b912deea9d8ee69630baed1737e # v6.7.6
121
120
id : cypress
122
- # If CYPRESS_RECORD_KEY is set, run in parallel on all containers
123
- # Otherwise (e.g. if running from fork), we run on a single container only
124
- if : ${{ env.shouldRunParallel == 'true' || ( matrix.containers == 1 ) }}
125
121
with :
126
122
install : false
127
123
start : pnpm run dev:coverage
128
124
wait-on : ' http://localhost:9000'
129
125
browser : chrome
130
126
# Disable recording if we don't have an API key
131
127
# e.g. if this action was run from a fork
132
- record : ${{ env.shouldRunParallel == 'true' }}
133
- parallel : ${{ env.shouldRunParallel == 'true' }}
128
+ record : ${{ secrets.CYPRESS_RECORD_KEY != '' }}
134
129
env :
135
130
CYPRESS_RECORD_KEY : ${{ secrets.CYPRESS_RECORD_KEY }}
136
131
VITEST_COVERAGE : true
137
132
CYPRESS_COMMIT : ${{ github.sha }}
138
133
ARGOS_TOKEN : ${{ secrets.ARGOS_TOKEN }}
139
- ARGOS_PARALLEL : ${{ env.shouldRunParallel == ' true' }}
140
- ARGOS_PARALLEL_TOTAL : 4
134
+ ARGOS_PARALLEL : true
135
+ ARGOS_PARALLEL_TOTAL : ${{ strategy.job-total }}
141
136
ARGOS_PARALLEL_INDEX : ${{ matrix.containers }}
137
+ SPLIT : ${{ strategy.job-total }}
138
+ SPLIT_INDEX : ${{ strategy.job-index }}
139
+ SPLIT_FILE : ' cypress/timings.json'
142
140
143
141
- name : Upload Coverage to Codecov
144
142
uses : codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
0 commit comments