mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-19 14:52:19 +02:00
fix matrix approach for tests
This commit is contained in:
parent
a3a4d211a7
commit
6cc35e3128
5
.github/workflows/run-test-template.yml
vendored
5
.github/workflows/run-test-template.yml
vendored
@ -6,9 +6,6 @@ on:
|
|||||||
project:
|
project:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
test_name:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
@ -22,5 +19,5 @@ jobs:
|
|||||||
node-version: ${{ env.NODE_VERSION }}
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
- name: Install Node.js dependencies
|
- name: Install Node.js dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Run tests
|
- name: Run ${{ inputs.project }} tests
|
||||||
run: npx vitest --project ${{ inputs.project }} ${{ runner.debug == '1' && '' || '--silent' }}
|
run: npx vitest --project ${{ inputs.project }} ${{ runner.debug == '1' && '' || '--silent' }}
|
||||||
|
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@ -40,8 +40,6 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
project: [misc, abilities, items, moves, battle]
|
project: [misc, abilities, items, moves, battle]
|
||||||
test_name: [Misc Tests, Abilities Tests, Items Tests, Moves Tests, Battle Tests]
|
uses: ./run-test-template.yml # run job defined in run-test-template.yml
|
||||||
uses: ./.github/workflows/run-test-template.yml # run job defined in run-test-template.yml
|
|
||||||
with:
|
with:
|
||||||
project: ${{ matrix.project }}
|
project: ${{ matrix.project }}
|
||||||
test_name: ${{ matrix.test_name }}
|
|
Loading…
Reference in New Issue
Block a user