Skip to content

Commit

Permalink
update demo-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Nov 15, 2024
1 parent 324841c commit ec7861a
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/demo-deploy-action.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
name: 'Demo-Deploy'

on:
workflow_dispatch:
push:

jobs:
get-e2e-files:
runs-on: ubuntu-24.04
outputs:
file_list: ${{ steps.generate-file-list.outputs.file_list }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Generate file list
id: generate-file-list
run: |
FILES=$(ls frontend/cypress/e2e | jq -R . | jq -s . | jq -c)
echo $FILES
echo "file_list=$FILES" >> $GITHUB_OUTPUT
read-version:
runs-on: ubuntu-24.04
outputs:
Expand Down Expand Up @@ -64,8 +79,11 @@ jobs:

e2e-docker:
runs-on: ubuntu-24.04
needs: [build-docker-image, read-version]

needs: [build-docker-image, read-version, get-e2e-files]
strategy:
fail-fast: false
matrix:
file: ${{ fromJSON(needs.get-e2e-files.outputs.file_list) }}
steps:
- uses: actions/checkout@v4

Expand All @@ -92,17 +110,17 @@ jobs:
with:
build: npm i -D cypress
install: false
wait-on: 'http://pitc.okr.localhost:8080/config, http://pitc.okr.localhost:4200, http://localhost:8544'
wait-on: 'http://pitc.okr.localhost:8080/config, http://localhost:8544'
wait-on-timeout: 120
browser: chrome
headed: true
working-directory: frontend
headed: false
config: baseUrl=http://pitc.okr.localhost:8080
spec: cypress/e2e/${{ matrix.file }}

- uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-screenshots
name: cypress-screenshots for ${{ matrix.file }}
path: frontend/cypress/screenshots

upload-to-quay:
Expand Down

0 comments on commit ec7861a

Please sign in to comment.