@cypress/github-action 7.4.3 → 7.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +103 -68
- package/dist/849.index.js +13075 -0
- package/dist/index.js +695 -8422
- package/package.json +6 -6
- package/src/ping-cli.js +7 -0
- package/src/ping.js +12 -6
package/README.md
CHANGED
|
@@ -97,7 +97,7 @@ name: End-to-end tests
|
|
|
97
97
|
on: push
|
|
98
98
|
jobs:
|
|
99
99
|
cypress-run:
|
|
100
|
-
runs-on: ubuntu-
|
|
100
|
+
runs-on: ubuntu-26.04
|
|
101
101
|
steps:
|
|
102
102
|
- name: Checkout
|
|
103
103
|
uses: actions/checkout@v7
|
|
@@ -122,7 +122,7 @@ name: Component tests
|
|
|
122
122
|
on: push
|
|
123
123
|
jobs:
|
|
124
124
|
cypress-run:
|
|
125
|
-
runs-on: ubuntu-
|
|
125
|
+
runs-on: ubuntu-26.04
|
|
126
126
|
steps:
|
|
127
127
|
- name: Checkout
|
|
128
128
|
uses: actions/checkout@v7
|
|
@@ -166,7 +166,15 @@ The workflows in the [examples](./examples/) directory use the latest commit fro
|
|
|
166
166
|
|
|
167
167
|
### Browser
|
|
168
168
|
|
|
169
|
-
Specify the browser name or path with the `browser` parameter.
|
|
169
|
+
Specify the browser name or path with the `browser` parameter.
|
|
170
|
+
|
|
171
|
+
The default browser can be set as a [Browser](https://docs.cypress.io/app/references/configuration#Browser) configuration option `defaultBrowser`.
|
|
172
|
+
If no `browser` parameter is specified and `defaultBrowser` is also undefined,
|
|
173
|
+
the built-in [Electron browser](https://on.cypress.io/guides/guides/launching-browsers#Electron-Browser) is used.
|
|
174
|
+
|
|
175
|
+
[cypress@16.0.0](https://docs.cypress.io/app/references/changelog#16-0-0) deprecated the Electron browser and describes the plan to remove it in a future major version of Cypress.
|
|
176
|
+
|
|
177
|
+
Each of the [examples](./examples/) directories in this repo sets `defaultBrowser` to `chrome`.
|
|
170
178
|
|
|
171
179
|
### Chrome
|
|
172
180
|
|
|
@@ -175,7 +183,7 @@ name: Chrome
|
|
|
175
183
|
on: push
|
|
176
184
|
jobs:
|
|
177
185
|
chrome:
|
|
178
|
-
runs-on: ubuntu-
|
|
186
|
+
runs-on: ubuntu-26.04
|
|
179
187
|
name: E2E on Chrome
|
|
180
188
|
steps:
|
|
181
189
|
- uses: actions/checkout@v7
|
|
@@ -188,20 +196,22 @@ jobs:
|
|
|
188
196
|
|
|
189
197
|
### Chrome for Testing
|
|
190
198
|
|
|
191
|
-
To install [Google Chrome for Testing](https://developer.chrome.com/blog/chrome-for-testing/)
|
|
199
|
+
To install [Google Chrome for Testing](https://developer.chrome.com/blog/chrome-for-testing/)
|
|
200
|
+
use [browser-actions/setup-chrome](https://github.com/browser-actions/setup-chrome).
|
|
201
|
+
Refer to [Chrome for Testing availability](https://googlechromelabs.github.io/chrome-for-testing/) for current versions
|
|
202
|
+
or [JSON API endpoints](https://github.com/GoogleChromeLabs/chrome-for-testing#json-api-endpoints)
|
|
203
|
+
for all available versions.
|
|
192
204
|
|
|
193
205
|
```yml
|
|
194
206
|
name: Chrome for Testing
|
|
195
207
|
on: push
|
|
196
208
|
jobs:
|
|
197
209
|
chrome:
|
|
198
|
-
runs-on: ubuntu-
|
|
210
|
+
runs-on: ubuntu-26.04
|
|
199
211
|
name: E2E on Chrome for Testing
|
|
200
212
|
steps:
|
|
201
213
|
- uses: actions/checkout@v7
|
|
202
214
|
- uses: browser-actions/setup-chrome@v2
|
|
203
|
-
with:
|
|
204
|
-
chrome-version: 140
|
|
205
215
|
- uses: cypress-io/github-action@v7
|
|
206
216
|
with:
|
|
207
217
|
browser: chrome-for-testing
|
|
@@ -216,7 +226,7 @@ name: Firefox
|
|
|
216
226
|
on: push
|
|
217
227
|
jobs:
|
|
218
228
|
firefox:
|
|
219
|
-
runs-on: ubuntu-
|
|
229
|
+
runs-on: ubuntu-26.04
|
|
220
230
|
name: E2E on Firefox
|
|
221
231
|
steps:
|
|
222
232
|
- uses: actions/checkout@v7
|
|
@@ -234,7 +244,7 @@ name: Edge
|
|
|
234
244
|
on: push
|
|
235
245
|
jobs:
|
|
236
246
|
edge:
|
|
237
|
-
runs-on: ubuntu-
|
|
247
|
+
runs-on: ubuntu-26.04
|
|
238
248
|
name: E2E on Edge
|
|
239
249
|
steps:
|
|
240
250
|
- uses: actions/checkout@v7
|
|
@@ -254,7 +264,7 @@ name: Chrome headed
|
|
|
254
264
|
on: push
|
|
255
265
|
jobs:
|
|
256
266
|
cypress-run:
|
|
257
|
-
runs-on: ubuntu-
|
|
267
|
+
runs-on: ubuntu-26.04
|
|
258
268
|
steps:
|
|
259
269
|
- uses: actions/checkout@v7
|
|
260
270
|
- uses: cypress-io/github-action@v7
|
|
@@ -272,7 +282,7 @@ name: Test in Docker
|
|
|
272
282
|
on: push
|
|
273
283
|
jobs:
|
|
274
284
|
cypress-run:
|
|
275
|
-
runs-on: ubuntu-
|
|
285
|
+
runs-on: ubuntu-26.04
|
|
276
286
|
# Cypress Docker image from https://hub.docker.com/r/cypress
|
|
277
287
|
# with browsers pre-installed
|
|
278
288
|
container:
|
|
@@ -296,7 +306,7 @@ name: Test with Docker cypress/included
|
|
|
296
306
|
on: push
|
|
297
307
|
jobs:
|
|
298
308
|
cypress-run:
|
|
299
|
-
runs-on: ubuntu-
|
|
309
|
+
runs-on: ubuntu-26.04
|
|
300
310
|
container:
|
|
301
311
|
# Cypress Docker image from https://hub.docker.com/r/cypress/included
|
|
302
312
|
# with Cypress globally pre-installed
|
|
@@ -317,14 +327,16 @@ Refer to [cypress-io/cypress-docker-images](https://github.com/cypress-io/cypres
|
|
|
317
327
|
|
|
318
328
|
### Env
|
|
319
329
|
|
|
320
|
-
|
|
330
|
+
To pass an environment variable to Cypress <15.10.0 use the action's `env` parameter.
|
|
331
|
+
In Cypress 15.10.0 and above, the `env` is specified for use with secret environment variables.
|
|
332
|
+
It is replaced with the [expose](#expose) action parameter for public, non-sensitive environment variables.
|
|
321
333
|
|
|
322
334
|
```yml
|
|
323
335
|
name: Cypress tests
|
|
324
336
|
on: push
|
|
325
337
|
jobs:
|
|
326
338
|
cypress-run:
|
|
327
|
-
runs-on: ubuntu-
|
|
339
|
+
runs-on: ubuntu-26.04
|
|
328
340
|
steps:
|
|
329
341
|
- name: Checkout
|
|
330
342
|
uses: actions/checkout@v7
|
|
@@ -342,7 +354,7 @@ name: Cypress tests
|
|
|
342
354
|
on: push
|
|
343
355
|
jobs:
|
|
344
356
|
cypress-run:
|
|
345
|
-
runs-on: ubuntu-
|
|
357
|
+
runs-on: ubuntu-26.04
|
|
346
358
|
steps:
|
|
347
359
|
- name: Checkout
|
|
348
360
|
uses: actions/checkout@v7
|
|
@@ -367,7 +379,7 @@ name: Cypress tests
|
|
|
367
379
|
on: push
|
|
368
380
|
jobs:
|
|
369
381
|
cypress-run:
|
|
370
|
-
runs-on: ubuntu-
|
|
382
|
+
runs-on: ubuntu-26.04
|
|
371
383
|
steps:
|
|
372
384
|
- name: Checkout
|
|
373
385
|
uses: actions/checkout@v7
|
|
@@ -392,7 +404,7 @@ on: push
|
|
|
392
404
|
jobs:
|
|
393
405
|
cypress-run:
|
|
394
406
|
name: Cypress run
|
|
395
|
-
runs-on: ubuntu-
|
|
407
|
+
runs-on: ubuntu-26.04
|
|
396
408
|
steps:
|
|
397
409
|
- name: Checkout
|
|
398
410
|
uses: actions/checkout@v7
|
|
@@ -423,7 +435,7 @@ on: push
|
|
|
423
435
|
jobs:
|
|
424
436
|
cypress-run:
|
|
425
437
|
name: Cypress run
|
|
426
|
-
runs-on: ubuntu-
|
|
438
|
+
runs-on: ubuntu-26.04
|
|
427
439
|
steps:
|
|
428
440
|
- name: Checkout
|
|
429
441
|
uses: actions/checkout@v7
|
|
@@ -455,7 +467,7 @@ on: push
|
|
|
455
467
|
jobs:
|
|
456
468
|
cypress-run:
|
|
457
469
|
name: Cypress run
|
|
458
|
-
runs-on: ubuntu-
|
|
470
|
+
runs-on: ubuntu-26.04
|
|
459
471
|
steps:
|
|
460
472
|
- name: Checkout
|
|
461
473
|
uses: actions/checkout@v7
|
|
@@ -485,7 +497,7 @@ on: push
|
|
|
485
497
|
jobs:
|
|
486
498
|
cypress-run:
|
|
487
499
|
name: Cypress run
|
|
488
|
-
runs-on: ubuntu-
|
|
500
|
+
runs-on: ubuntu-26.04
|
|
489
501
|
steps:
|
|
490
502
|
- name: Checkout
|
|
491
503
|
uses: actions/checkout@v7
|
|
@@ -518,7 +530,7 @@ name: Example echo PR number and URL
|
|
|
518
530
|
on: push
|
|
519
531
|
jobs:
|
|
520
532
|
cypress-run:
|
|
521
|
-
runs-on: ubuntu-
|
|
533
|
+
runs-on: ubuntu-26.04
|
|
522
534
|
steps:
|
|
523
535
|
- name: Checkout
|
|
524
536
|
uses: actions/checkout@v7
|
|
@@ -556,7 +568,7 @@ on: push
|
|
|
556
568
|
jobs:
|
|
557
569
|
cypress-run:
|
|
558
570
|
name: Cypress run
|
|
559
|
-
runs-on: ubuntu-
|
|
571
|
+
runs-on: ubuntu-26.04
|
|
560
572
|
steps:
|
|
561
573
|
- name: Checkout
|
|
562
574
|
uses: actions/checkout@v7
|
|
@@ -584,7 +596,7 @@ name: tags
|
|
|
584
596
|
on: push
|
|
585
597
|
jobs:
|
|
586
598
|
cypress-run:
|
|
587
|
-
runs-on: ubuntu-
|
|
599
|
+
runs-on: ubuntu-26.04
|
|
588
600
|
# let's make sure our "app" works on several versions of Node
|
|
589
601
|
strategy:
|
|
590
602
|
matrix:
|
|
@@ -629,7 +641,7 @@ name: Cypress E2E Tests
|
|
|
629
641
|
on: push
|
|
630
642
|
jobs:
|
|
631
643
|
cypress-run:
|
|
632
|
-
runs-on: ubuntu-
|
|
644
|
+
runs-on: ubuntu-26.04
|
|
633
645
|
name: E2E
|
|
634
646
|
steps:
|
|
635
647
|
- name: Checkout
|
|
@@ -657,7 +669,7 @@ name: Artifacts
|
|
|
657
669
|
on: push
|
|
658
670
|
jobs:
|
|
659
671
|
cypress-run:
|
|
660
|
-
runs-on: ubuntu-
|
|
672
|
+
runs-on: ubuntu-26.04
|
|
661
673
|
name: Artifacts
|
|
662
674
|
steps:
|
|
663
675
|
- uses: actions/checkout@v7
|
|
@@ -686,7 +698,7 @@ name: example-quiet
|
|
|
686
698
|
on: push
|
|
687
699
|
jobs:
|
|
688
700
|
cypress-run:
|
|
689
|
-
runs-on: ubuntu-
|
|
701
|
+
runs-on: ubuntu-26.04
|
|
690
702
|
steps:
|
|
691
703
|
- name: Checkout
|
|
692
704
|
uses: actions/checkout@v7
|
|
@@ -711,7 +723,7 @@ on: push
|
|
|
711
723
|
jobs:
|
|
712
724
|
cypress-run:
|
|
713
725
|
name: Cypress run
|
|
714
|
-
runs-on: ubuntu-
|
|
726
|
+
runs-on: ubuntu-26.04
|
|
715
727
|
steps:
|
|
716
728
|
- name: Checkout
|
|
717
729
|
uses: actions/checkout@v7
|
|
@@ -734,7 +746,7 @@ on: push
|
|
|
734
746
|
jobs:
|
|
735
747
|
cypress-run:
|
|
736
748
|
name: Cypress run
|
|
737
|
-
runs-on: ubuntu-
|
|
749
|
+
runs-on: ubuntu-26.04
|
|
738
750
|
steps:
|
|
739
751
|
- name: Checkout
|
|
740
752
|
uses: actions/checkout@v7
|
|
@@ -751,7 +763,9 @@ jobs:
|
|
|
751
763
|
|
|
752
764
|
**Note:** Cypress parallelization requires a [Cypress Cloud](https://on.cypress.io/cloud-introduction) account.
|
|
753
765
|
|
|
754
|
-
You can spin multiple
|
|
766
|
+
You can spin multiple jobs running in parallel using the `strategy: matrix` argument.
|
|
767
|
+
Just add more dummy items to the `recording-job: [1, 2, ...]` array to create multiple job runs.
|
|
768
|
+
Then use `record` and `parallel` parameters to [load balance tests](https://on.cypress.io/parallelization).
|
|
755
769
|
|
|
756
770
|
```yml
|
|
757
771
|
name: Parallel Cypress Tests
|
|
@@ -759,7 +773,7 @@ on: push
|
|
|
759
773
|
jobs:
|
|
760
774
|
test:
|
|
761
775
|
name: Cypress run
|
|
762
|
-
runs-on: ubuntu-
|
|
776
|
+
runs-on: ubuntu-26.04
|
|
763
777
|
strategy:
|
|
764
778
|
# when one test fails, DO NOT cancel the other
|
|
765
779
|
# containers, because this will kill Cypress processes
|
|
@@ -768,13 +782,16 @@ jobs:
|
|
|
768
782
|
fail-fast: false
|
|
769
783
|
matrix:
|
|
770
784
|
# run 3 copies of the current job in parallel
|
|
771
|
-
|
|
785
|
+
recording-job: [1, 2, 3]
|
|
786
|
+
container:
|
|
787
|
+
image: cypress/browsers:latest
|
|
788
|
+
options: --user 1001
|
|
772
789
|
steps:
|
|
773
790
|
- name: Checkout
|
|
774
791
|
uses: actions/checkout@v7
|
|
775
792
|
|
|
776
793
|
# because of "record" and "parallel" parameters
|
|
777
|
-
# these
|
|
794
|
+
# these jobs will load balance all found tests among themselves
|
|
778
795
|
- name: Cypress run
|
|
779
796
|
uses: cypress-io/github-action@v7
|
|
780
797
|
with:
|
|
@@ -784,14 +801,18 @@ jobs:
|
|
|
784
801
|
env:
|
|
785
802
|
# pass the Cypress Cloud record key as an environment variable
|
|
786
803
|
CYPRESS_RECORD_KEY: ${{ secrets.EXAMPLE_RECORDING_KEY }}
|
|
787
|
-
# Recommended:
|
|
804
|
+
# Recommended: passing the GitHub token lets this action correctly
|
|
788
805
|
# determine the unique run id necessary to re-run the checks
|
|
789
806
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
790
807
|
```
|
|
791
808
|
|
|
792
809
|

|
|
793
810
|
|
|
794
|
-
The Cypress
|
|
811
|
+
The Cypress GitHub Action does not spawn or create any additional jobs -
|
|
812
|
+
it only links the multiple jobs spawned using the matrix strategy into a single logical Cypress Cloud run
|
|
813
|
+
where it splits the specs amongst the machines.
|
|
814
|
+
See the [Cypress Cloud Smart Orchestration](https://docs.cypress.io/cloud/features/smart-orchestration/overview/) guide
|
|
815
|
+
for a detailed explanation.
|
|
795
816
|
|
|
796
817
|
If you use the GitHub Actions facility for [Re-running workflows and jobs](https://docs.github.com/en/actions/managing-workflow-runs/re-running-workflows-and-jobs), note that [Re-running failed jobs in a workflow](https://docs.github.com/en/actions/managing-workflow-runs/re-running-workflows-and-jobs?tool=webui#re-running-failed-jobs-in-a-workflow) is not suited for use with parallel recording into Cypress Cloud. Re-running failed jobs in this situation does not simply re-run failed Cypress tests. Instead it re-runs **all** Cypress tests, load-balanced over the containers with failed jobs.
|
|
797
818
|
|
|
@@ -800,7 +821,17 @@ To optimize runs when there are failing tests present, refer to optional [Cypres
|
|
|
800
821
|
- [Spec Prioritization](https://docs.cypress.io/cloud/features/smart-orchestration/spec-prioritization)
|
|
801
822
|
- [Auto Cancellation](https://docs.cypress.io/guides/cloud/smart-orchestration/run-cancellation). See also [Auto cancel after failures](#auto-cancel-after-failures) for details of how to set this option in a Cypress GitHub Action workflow.
|
|
802
823
|
|
|
803
|
-
During staged rollout of a new GitHub-hosted runner
|
|
824
|
+
During staged rollout of a new [GitHub-hosted runner image](https://github.com/actions/runner-images#readme) version,
|
|
825
|
+
GitHub may provide a mixture of current and new image versions used by the job matrix.
|
|
826
|
+
When running parallel jobs under GitHub-hosted Ubuntu runner images,
|
|
827
|
+
it is recommended to use a [Docker image](#docker-image)
|
|
828
|
+
to avoid any Cypress Cloud errors due to browser major version mismatch between the current and new image versions.
|
|
829
|
+
|
|
830
|
+
Avoid using parallel jobs with GitHub-hosted macOS or Windows runner images,
|
|
831
|
+
since there is currently no workaround for the deployment mismatch issue.
|
|
832
|
+
On macOS the problem can also occur when there is an upgrade to the macOS version.
|
|
833
|
+
|
|
834
|
+
[](.github/workflows/example-recording.yml)
|
|
804
835
|
|
|
805
836
|
### Component and E2E Testing
|
|
806
837
|
|
|
@@ -829,7 +860,7 @@ name: Build
|
|
|
829
860
|
on: push
|
|
830
861
|
jobs:
|
|
831
862
|
cypress-run:
|
|
832
|
-
runs-on: ubuntu-
|
|
863
|
+
runs-on: ubuntu-26.04
|
|
833
864
|
steps:
|
|
834
865
|
- name: Checkout
|
|
835
866
|
uses: actions/checkout@v7
|
|
@@ -848,7 +879,7 @@ name: With server
|
|
|
848
879
|
on: push
|
|
849
880
|
jobs:
|
|
850
881
|
cypress-run:
|
|
851
|
-
runs-on: ubuntu-
|
|
882
|
+
runs-on: ubuntu-26.04
|
|
852
883
|
steps:
|
|
853
884
|
- name: Checkout
|
|
854
885
|
uses: actions/checkout@v7
|
|
@@ -867,7 +898,7 @@ name: With server
|
|
|
867
898
|
on: push
|
|
868
899
|
jobs:
|
|
869
900
|
cypress-run:
|
|
870
|
-
runs-on: ubuntu-
|
|
901
|
+
runs-on: ubuntu-26.04
|
|
871
902
|
steps:
|
|
872
903
|
- name: Checkout
|
|
873
904
|
uses: actions/checkout@v7
|
|
@@ -893,7 +924,7 @@ name: With servers
|
|
|
893
924
|
on: push
|
|
894
925
|
jobs:
|
|
895
926
|
cypress-run:
|
|
896
|
-
runs-on: ubuntu-
|
|
927
|
+
runs-on: ubuntu-26.04
|
|
897
928
|
steps:
|
|
898
929
|
- name: Checkout
|
|
899
930
|
uses: actions/checkout@v7
|
|
@@ -923,7 +954,7 @@ name: After server responds
|
|
|
923
954
|
on: push
|
|
924
955
|
jobs:
|
|
925
956
|
cypress-run:
|
|
926
|
-
runs-on: ubuntu-
|
|
957
|
+
runs-on: ubuntu-26.04
|
|
927
958
|
steps:
|
|
928
959
|
- name: Checkout
|
|
929
960
|
uses: actions/checkout@v7
|
|
@@ -1012,7 +1043,7 @@ name: Visual
|
|
|
1012
1043
|
on: push
|
|
1013
1044
|
jobs:
|
|
1014
1045
|
e2e:
|
|
1015
|
-
runs-on: ubuntu-
|
|
1046
|
+
runs-on: ubuntu-26.04
|
|
1016
1047
|
steps:
|
|
1017
1048
|
- name: Checkout
|
|
1018
1049
|
uses: actions/checkout@v7
|
|
@@ -1059,11 +1090,14 @@ name: Parallel
|
|
|
1059
1090
|
on: push
|
|
1060
1091
|
jobs:
|
|
1061
1092
|
test:
|
|
1062
|
-
runs-on: ubuntu-
|
|
1093
|
+
runs-on: ubuntu-26.04
|
|
1063
1094
|
strategy:
|
|
1064
1095
|
matrix:
|
|
1065
1096
|
# run 3 copies of the current job in parallel
|
|
1066
|
-
|
|
1097
|
+
recording-job: [1, 2, 3]
|
|
1098
|
+
container:
|
|
1099
|
+
image: cypress/browsers:latest
|
|
1100
|
+
options: --user 1001
|
|
1067
1101
|
steps:
|
|
1068
1102
|
- uses: actions/checkout@v7
|
|
1069
1103
|
- uses: cypress-io/github-action@v7
|
|
@@ -1099,6 +1133,9 @@ jobs:
|
|
|
1099
1133
|
run: echo "value=sha-$GITHUB_SHA-time-$(date +"%s")" >> $GITHUB_OUTPUT
|
|
1100
1134
|
smoke-tests:
|
|
1101
1135
|
needs: ['prepare']
|
|
1136
|
+
container:
|
|
1137
|
+
image: cypress/browsers:latest
|
|
1138
|
+
options: --user 1001
|
|
1102
1139
|
steps:
|
|
1103
1140
|
- uses: actions/checkout@v7
|
|
1104
1141
|
- uses: cypress-io/github-action@v7
|
|
@@ -1138,7 +1175,7 @@ We use `working-directory: app-test` to match the above example directory struct
|
|
|
1138
1175
|
on: push
|
|
1139
1176
|
jobs:
|
|
1140
1177
|
cypress-run:
|
|
1141
|
-
runs-on: ubuntu-
|
|
1178
|
+
runs-on: ubuntu-26.04
|
|
1142
1179
|
steps:
|
|
1143
1180
|
- uses: actions/checkout@v7
|
|
1144
1181
|
- uses: cypress-io/github-action@v7
|
|
@@ -1176,7 +1213,7 @@ name: E2E
|
|
|
1176
1213
|
on: push
|
|
1177
1214
|
jobs:
|
|
1178
1215
|
test:
|
|
1179
|
-
runs-on: ubuntu-
|
|
1216
|
+
runs-on: ubuntu-26.04
|
|
1180
1217
|
steps:
|
|
1181
1218
|
- uses: actions/checkout@v7
|
|
1182
1219
|
- name: Install root dependencies
|
|
@@ -1208,14 +1245,14 @@ name: example-basic-pnpm
|
|
|
1208
1245
|
on: push
|
|
1209
1246
|
jobs:
|
|
1210
1247
|
basic-pnpm:
|
|
1211
|
-
runs-on: ubuntu-
|
|
1248
|
+
runs-on: ubuntu-26.04
|
|
1212
1249
|
steps:
|
|
1213
1250
|
- name: Checkout
|
|
1214
1251
|
uses: actions/checkout@v7
|
|
1215
1252
|
- name: Install pnpm
|
|
1216
1253
|
uses: pnpm/action-setup@v6
|
|
1217
1254
|
with:
|
|
1218
|
-
version:
|
|
1255
|
+
version: 12
|
|
1219
1256
|
- name: Install Node.js
|
|
1220
1257
|
uses: actions/setup-node@v7
|
|
1221
1258
|
with:
|
|
@@ -1268,7 +1305,7 @@ name: example-yarn-classic
|
|
|
1268
1305
|
on: push
|
|
1269
1306
|
jobs:
|
|
1270
1307
|
yarn-classic:
|
|
1271
|
-
runs-on: ubuntu-
|
|
1308
|
+
runs-on: ubuntu-26.04
|
|
1272
1309
|
steps:
|
|
1273
1310
|
- name: Checkout
|
|
1274
1311
|
uses: actions/checkout@v7
|
|
@@ -1291,7 +1328,7 @@ name: example-yarn-modern
|
|
|
1291
1328
|
on: push
|
|
1292
1329
|
jobs:
|
|
1293
1330
|
yarn-modern:
|
|
1294
|
-
runs-on: ubuntu-
|
|
1331
|
+
runs-on: ubuntu-26.04
|
|
1295
1332
|
steps:
|
|
1296
1333
|
- name: Checkout
|
|
1297
1334
|
uses: actions/checkout@v7
|
|
@@ -1325,7 +1362,7 @@ name: example-yarn-modern-pnp
|
|
|
1325
1362
|
on: push
|
|
1326
1363
|
jobs:
|
|
1327
1364
|
yarn-classic:
|
|
1328
|
-
runs-on: ubuntu-
|
|
1365
|
+
runs-on: ubuntu-26.04
|
|
1329
1366
|
steps:
|
|
1330
1367
|
- name: Checkout
|
|
1331
1368
|
uses: actions/checkout@v7
|
|
@@ -1355,7 +1392,7 @@ jobs:
|
|
|
1355
1392
|
# the example has Yarn workspace in its "root" folder
|
|
1356
1393
|
# examples/start-and-yarn-workspaces
|
|
1357
1394
|
# and tests in a subfolder like "workspace-1"
|
|
1358
|
-
runs-on: ubuntu-
|
|
1395
|
+
runs-on: ubuntu-26.04
|
|
1359
1396
|
steps:
|
|
1360
1397
|
- uses: actions/checkout@v7
|
|
1361
1398
|
- uses: cypress-io/github-action@v7
|
|
@@ -1386,7 +1423,7 @@ name: Package manager caching
|
|
|
1386
1423
|
on: push
|
|
1387
1424
|
jobs:
|
|
1388
1425
|
cypress-run:
|
|
1389
|
-
runs-on: ubuntu-
|
|
1426
|
+
runs-on: ubuntu-26.04
|
|
1390
1427
|
name:
|
|
1391
1428
|
steps:
|
|
1392
1429
|
- uses: actions/checkout@v7
|
|
@@ -1409,7 +1446,7 @@ name: End-to-end tests
|
|
|
1409
1446
|
on: push
|
|
1410
1447
|
jobs:
|
|
1411
1448
|
cypress-run:
|
|
1412
|
-
runs-on: ubuntu-
|
|
1449
|
+
runs-on: ubuntu-26.04
|
|
1413
1450
|
# let's make sure our "app" works on several versions of Node
|
|
1414
1451
|
strategy:
|
|
1415
1452
|
matrix:
|
|
@@ -1447,7 +1484,7 @@ name: Node versions
|
|
|
1447
1484
|
on: push
|
|
1448
1485
|
jobs:
|
|
1449
1486
|
cypress-run:
|
|
1450
|
-
runs-on: ubuntu-
|
|
1487
|
+
runs-on: ubuntu-26.04
|
|
1451
1488
|
strategy:
|
|
1452
1489
|
matrix:
|
|
1453
1490
|
node:
|
|
@@ -1476,7 +1513,7 @@ name: E2E
|
|
|
1476
1513
|
on: push
|
|
1477
1514
|
jobs:
|
|
1478
1515
|
test:
|
|
1479
|
-
runs-on: ubuntu-
|
|
1516
|
+
runs-on: ubuntu-26.04
|
|
1480
1517
|
steps:
|
|
1481
1518
|
- uses: actions/checkout@v7
|
|
1482
1519
|
- name: Install dependencies
|
|
@@ -1509,7 +1546,7 @@ name: Split build and test
|
|
|
1509
1546
|
on: push
|
|
1510
1547
|
jobs:
|
|
1511
1548
|
build:
|
|
1512
|
-
runs-on: ubuntu-
|
|
1549
|
+
runs-on: ubuntu-26.04
|
|
1513
1550
|
steps:
|
|
1514
1551
|
- uses: actions/checkout@v7
|
|
1515
1552
|
- name: Build app
|
|
@@ -1527,7 +1564,7 @@ jobs:
|
|
|
1527
1564
|
|
|
1528
1565
|
test:
|
|
1529
1566
|
needs: build
|
|
1530
|
-
runs-on: ubuntu-
|
|
1567
|
+
runs-on: ubuntu-26.04
|
|
1531
1568
|
steps:
|
|
1532
1569
|
- uses: actions/checkout@v7
|
|
1533
1570
|
- name: Restore build artifacts
|
|
@@ -1555,7 +1592,7 @@ You can tell the CI to stop the job or the individual step if it runs for longer
|
|
|
1555
1592
|
```yml
|
|
1556
1593
|
jobs:
|
|
1557
1594
|
cypress-run:
|
|
1558
|
-
runs-on: ubuntu-
|
|
1595
|
+
runs-on: ubuntu-26.04
|
|
1559
1596
|
# stop the job if it runs over 10 minutes
|
|
1560
1597
|
# to prevent a hanging process from using all your CI minutes
|
|
1561
1598
|
timeout-minutes: 10
|
|
@@ -1600,7 +1637,7 @@ name: CLI migration example
|
|
|
1600
1637
|
on: push
|
|
1601
1638
|
jobs:
|
|
1602
1639
|
cypress-run:
|
|
1603
|
-
runs-on: ubuntu-
|
|
1640
|
+
runs-on: ubuntu-26.04
|
|
1604
1641
|
steps:
|
|
1605
1642
|
- name: Check out repo
|
|
1606
1643
|
uses: actions/checkout@v7
|
|
@@ -1788,7 +1825,7 @@ name: info
|
|
|
1788
1825
|
on: push
|
|
1789
1826
|
jobs:
|
|
1790
1827
|
cypress-run:
|
|
1791
|
-
runs-on: ubuntu-
|
|
1828
|
+
runs-on: ubuntu-26.04
|
|
1792
1829
|
steps:
|
|
1793
1830
|
- name: Checkout
|
|
1794
1831
|
uses: actions/checkout@v7
|
|
@@ -1805,7 +1842,7 @@ name: info
|
|
|
1805
1842
|
on: push
|
|
1806
1843
|
jobs:
|
|
1807
1844
|
cypress-run:
|
|
1808
|
-
runs-on: ubuntu-
|
|
1845
|
+
runs-on: ubuntu-26.04
|
|
1809
1846
|
steps:
|
|
1810
1847
|
- name: Checkout
|
|
1811
1848
|
uses: actions/checkout@v7
|
|
@@ -1836,7 +1873,7 @@ on:
|
|
|
1836
1873
|
- cron: '0 4 * * *'
|
|
1837
1874
|
jobs:
|
|
1838
1875
|
nightly:
|
|
1839
|
-
runs-on: ubuntu-
|
|
1876
|
+
runs-on: ubuntu-26.04
|
|
1840
1877
|
steps:
|
|
1841
1878
|
- name: Checkout
|
|
1842
1879
|
uses: actions/checkout@v7
|
|
@@ -1857,7 +1894,7 @@ name: Summary titles
|
|
|
1857
1894
|
on: push
|
|
1858
1895
|
jobs:
|
|
1859
1896
|
tests:
|
|
1860
|
-
runs-on: ubuntu-
|
|
1897
|
+
runs-on: ubuntu-26.04
|
|
1861
1898
|
steps:
|
|
1862
1899
|
- uses: actions/checkout@v7
|
|
1863
1900
|
- name: Cypress headless tests
|
|
@@ -1885,7 +1922,7 @@ name: Example no summary
|
|
|
1885
1922
|
on: push
|
|
1886
1923
|
jobs:
|
|
1887
1924
|
cypress-run:
|
|
1888
|
-
runs-on: ubuntu-
|
|
1925
|
+
runs-on: ubuntu-26.04
|
|
1889
1926
|
steps:
|
|
1890
1927
|
- name: Checkout
|
|
1891
1928
|
uses: actions/checkout@v7
|
|
@@ -1920,9 +1957,7 @@ View the [CHANGELOG](./CHANGELOG.md) document for an overview of version changes
|
|
|
1920
1957
|
## Compatibility
|
|
1921
1958
|
|
|
1922
1959
|
- `github-action@v7` is the current recommended version, uses `node24` and is compatible with Cypress `10` and above.
|
|
1923
|
-
- `github-action
|
|
1924
|
-
- `github-action@v6.7.9` is the minimum version required to use GitHub Actions caching services. The legacy caching service used by lower versions of the action is no longer available.
|
|
1925
|
-
- `github-action` versions `v1` to `v5` are unsupported: they rely on Node.js `12` and `16` in End-of-life status.
|
|
1960
|
+
- `github-action` versions `v1` to `v6` are unsupported: they rely on Node.js `12`, `16` or `20` in End-of-life status.
|
|
1926
1961
|
|
|
1927
1962
|
Cypress lists browser compatibility information under [System Requirements](https://docs.cypress.io/app/get-started/install-cypress#Browsers).
|
|
1928
1963
|
|