Skip to content

Commit

Permalink
fix matrix approach for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
flx-sta committed Sep 10, 2024
1 parent a3a4d21 commit 6cc35e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/run-test-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
project:
required: true
type: string
test_name:
required: true
type: string

jobs:
test:
Expand All @@ -22,5 +19,5 @@ jobs:
node-version: ${{ env.NODE_VERSION }}
- name: Install Node.js dependencies
run: npm ci
- name: Run tests
- name: Run ${{ inputs.project }} tests
run: npx vitest --project ${{ inputs.project }} ${{ runner.debug == '1' && '' || '--silent' }}
6 changes: 2 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ jobs:
strategy:
matrix:
project: [misc, abilities, items, moves, battle]
test_name: [Misc Tests, Abilities Tests, Items Tests, Moves Tests, Battle Tests]
uses: ./.github/workflows/run-test-template.yml # run job defined in run-test-template.yml
uses: ./run-test-template.yml # run job defined in run-test-template.yml
with:
project: ${{ matrix.project }}
test_name: ${{ matrix.test_name }}
project: ${{ matrix.project }}

0 comments on commit 6cc35e3

Please sign in to comment.