File tree 1 file changed +43
-0
lines changed
1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Cypress Tests with Dependency and Artifact Caching
2
+
3
+ on : push
4
+
5
+ jobs :
6
+ install :
7
+ runs-on : ubuntu-22.04
8
+ steps :
9
+ - name : Checkout
10
+ uses : actions/checkout@v4
11
+
12
+ - name : Cypress install
13
+ uses : cypress-io/github-action@v6
14
+ with :
15
+ # Disable running of tests within install job
16
+ runTests : false
17
+ build : npm run build
18
+
19
+ - name : Save build folder
20
+ uses : actions/upload-artifact@v4
21
+ with :
22
+ name : build
23
+ if-no-files-found : error
24
+ path : build
25
+
26
+ cypress-run :
27
+ runs-on : ubuntu-22.04
28
+ needs : install
29
+ steps :
30
+ - name : Checkout
31
+ uses : actions/checkout@v4
32
+
33
+ - name : Download the build folder
34
+ uses : actions/download-artifact@v4
35
+ with :
36
+ name : build
37
+ path : build
38
+
39
+ - name : Cypress run
40
+ uses : cypress-io/github-action@v6
41
+ with :
42
+ start : npm start
43
+ browser : chrome
You can’t perform that action at this time.
0 commit comments