File tree 1 file changed +25
-7
lines changed
1 file changed +25
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : ' Demo-Deploy'
2
2
3
3
on :
4
- workflow_dispatch :
4
+ push :
5
5
6
6
jobs :
7
+ get-e2e-files :
8
+ runs-on : ubuntu-24.04
9
+ outputs :
10
+ file_list : ${{ steps.generate-file-list.outputs.file_list }}
11
+ steps :
12
+ - name : Checkout
13
+ uses : actions/checkout@v4
14
+
15
+ - name : Generate file list
16
+ id : generate-file-list
17
+ run : |
18
+ FILES=$(ls frontend/cypress/e2e | jq -R . | jq -s . | jq -c)
19
+ echo $FILES
20
+ echo "file_list=$FILES" >> $GITHUB_OUTPUT
21
+
7
22
read-version :
8
23
runs-on : ubuntu-24.04
9
24
outputs :
64
79
65
80
e2e-docker :
66
81
runs-on : ubuntu-24.04
67
- needs : [build-docker-image, read-version]
68
-
82
+ needs : [build-docker-image, read-version, get-e2e-files]
83
+ strategy :
84
+ fail-fast : false
85
+ matrix :
86
+ file : ${{ fromJSON(needs.get-e2e-files.outputs.file_list) }}
69
87
steps :
70
88
- uses : actions/checkout@v4
71
89
@@ -92,17 +110,17 @@ jobs:
92
110
with :
93
111
build : npm i -D cypress
94
112
install : false
95
- wait-on : ' http://pitc.okr.localhost:8080/config, http://pitc.okr.localhost:4200, http:// localhost:8544'
113
+ wait-on : ' http://pitc.okr.localhost:8080/config, http://localhost:8544'
96
114
wait-on-timeout : 120
97
115
browser : chrome
98
- headed : true
99
- working-directory : frontend
116
+ headed : false
100
117
config : baseUrl=http://pitc.okr.localhost:8080
118
+ spec : cypress/e2e/${{ matrix.file }}
101
119
102
120
- uses : actions/upload-artifact@v4
103
121
if : always()
104
122
with :
105
- name : cypress-screenshots
123
+ name : cypress-screenshots for ${{ matrix.file }}
106
124
path : frontend/cypress/screenshots
107
125
108
126
upload-to-quay :
You can’t perform that action at this time.
0 commit comments