Skip to content

Commit

Permalink
run e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel7373 committed Dec 5, 2024
1 parent a6c607a commit ef58041
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/frontend-test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,28 @@ jobs:
- name: Run unit tests
run: npm test

# 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
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
e2e:
# needs: get-e2e-files
needs: get-e2e-files
runs-on: ubuntu-24.04
# strategy:
# fail-fast: false
# matrix:
# file: ${{ fromJSON(needs.get-e2e-files.outputs.file_list) }}
strategy:
fail-fast: false
matrix:
file: ${{ fromJSON(needs.get-e2e-files.outputs.file_list) }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -77,13 +77,13 @@ jobs:
wait-on-timeout: 120
browser: chrome
headed: false
spec: cypress/e2e/tab.cy.ts
spec: cypress/e2e/${{ matrix.file }}

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

- name: remove docker containers
run: docker ps -aq | xargs -r docker rm -f

0 comments on commit ef58041

Please sign in to comment.