Skip to content

Commit

Permalink
Hardcode file names to test if matrix strategy works
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomTannenbaum committed Nov 4, 2024
1 parent bae9d45 commit 82451b0
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/frontend-test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,11 @@ jobs:
- name: Run unit tests
run: npm test

get-e2e-files:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Generate file list
id: generate-file-list
run: |
{
echo 'FILES<<EOF'
ls -1 "./frontend/cypress/e2e/" | jq -R . | jq -s .
echo EOF
} >> "$GITHUB_OUTPUT"
e2e:
needs: get-e2e-files
runs-on: ubuntu-24.04
strategy:
matrix:
file: ${{ fromJSON(needs.get-e2e-files.outputs.file_list) }}
file: "['checkIn.cy.ts', 'crud.cy.ts', 'duplicated-scoring.cy.ts', 'keyresult.cy.ts', 'login.cy.ts', 'objective.cy.ts', 'objective-backlog.cy.ts', 'overview.cy.ts', 'scoring.cy.ts', 'tab.cy.ts', 'team.cy.ts', 'teammanagement.cy.ts']"
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 82451b0

Please sign in to comment.