mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-19 23:02:19 +02:00
add options
input. Possible fix for debug = not silent
This commit is contained in:
parent
53a22a3c9f
commit
c6080e700c
5
.github/workflows/run-test-template.yml
vendored
5
.github/workflows/run-test-template.yml
vendored
@ -6,6 +6,9 @@ on:
|
|||||||
project:
|
project:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
options:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
@ -20,4 +23,4 @@ jobs:
|
|||||||
- name: Install Node.js dependencies
|
- name: Install Node.js dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Run ${{ inputs.project }} tests
|
- name: Run ${{ inputs.project }} tests
|
||||||
run: npx vitest --project ${{ inputs.project }} ${{ runner.debug == 1 && '' || '--silent' }}
|
run: npx vitest --project ${{ inputs.project }} ${{ inputs.options }}
|
||||||
|
8
.github/workflows/tests.yml
vendored
8
.github/workflows/tests.yml
vendored
@ -1,5 +1,8 @@
|
|||||||
name: Tests
|
name: Tests
|
||||||
|
|
||||||
|
env:
|
||||||
|
VITEST_OPTIONS: ${{ !runner.debug && '--silent' }}
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# Trigger the workflow on push or pull request,
|
# Trigger the workflow on push or pull request,
|
||||||
# but only for the main branch
|
# but only for the main branch
|
||||||
@ -32,7 +35,7 @@ jobs:
|
|||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Run Pre-test
|
- name: Run Pre-test
|
||||||
working-directory: tests-action
|
working-directory: tests-action
|
||||||
run: npx vitest run --project pre ${{ runner.debug == 1 && '' || '--silent' }}
|
run: npx vitest run --project pre $VITEST_OPTIONS
|
||||||
|
|
||||||
run-tests:
|
run-tests:
|
||||||
name: Run Tests
|
name: Run Tests
|
||||||
@ -42,4 +45,5 @@ jobs:
|
|||||||
project: [misc, abilities, items, moves, battle]
|
project: [misc, abilities, items, moves, battle]
|
||||||
uses: ./.github/workflows/run-test-template.yml
|
uses: ./.github/workflows/run-test-template.yml
|
||||||
with:
|
with:
|
||||||
project: ${{ matrix.project }}
|
project: ${{ matrix.project }}
|
||||||
|
options: $VITEST_OPTIONS
|
Loading…
Reference in New Issue
Block a user