Skip to content

Commit ec7861a

Browse files
committed
update demo-deploy
1 parent 324841c commit ec7861a

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

.github/workflows/demo-deploy-action.yml

+25-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
11
name: 'Demo-Deploy'
22

33
on:
4-
workflow_dispatch:
4+
push:
55

66
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+
722
read-version:
823
runs-on: ubuntu-24.04
924
outputs:
@@ -64,8 +79,11 @@ jobs:
6479

6580
e2e-docker:
6681
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) }}
6987
steps:
7088
- uses: actions/checkout@v4
7189

@@ -92,17 +110,17 @@ jobs:
92110
with:
93111
build: npm i -D cypress
94112
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'
96114
wait-on-timeout: 120
97115
browser: chrome
98-
headed: true
99-
working-directory: frontend
116+
headed: false
100117
config: baseUrl=http://pitc.okr.localhost:8080
118+
spec: cypress/e2e/${{ matrix.file }}
101119

102120
- uses: actions/upload-artifact@v4
103121
if: always()
104122
with:
105-
name: cypress-screenshots
123+
name: cypress-screenshots for ${{ matrix.file }}
106124
path: frontend/cypress/screenshots
107125

108126
upload-to-quay:

0 commit comments

Comments
 (0)