add :silent to all tests

but disable it if the runner is in debug mode!
This commit is contained in:
flx-sta 2024-09-10 08:35:10 -07:00
parent 5bf21a4f75
commit fcc08ebc43

View File

@ -1,5 +1,8 @@
name: Tests
env:
SILENT: ${{ runner.debug == '1' && '' || ':silent' }}
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
@ -32,9 +35,9 @@ jobs:
run: npm ci # Use 'npm ci' to install dependencies
- name: pre-test # pre-test to check overrides
run: npx vitest run --project pre
run: npx vitest run --project pre$SILENT
- name: test misc
run: npx vitest --project misc
run: npx vitest --project misc$SILENT
run-abilities-tests:
name: Run abilities tests
@ -49,9 +52,9 @@ jobs:
- name: Install Node.js dependencies
run: npm ci
- name: pre-test
run: npx vitest run --project pre
run: npx vitest run --project pre$SILENT
- name: test abilities
run: npx vitest --project abilities
run: npx vitest --project abilities$SILENT
run-items-tests:
name: Run items tests
@ -66,9 +69,9 @@ jobs:
- name: Install Node.js dependencies
run: npm ci
- name: pre-test
run: npx vitest run --project pre
run: npx vitest run --project pre$SILENT
- name: test items
run: npx vitest --project items
run: npx vitest --project items$SILENT
run-moves-tests:
name: Run moves tests
@ -83,9 +86,9 @@ jobs:
- name: Install Node.js dependencies
run: npm ci
- name: pre-test
run: npx vitest run --project pre
run: npx vitest run --project pre$SILENT
- name: test moves
run: npx vitest --project moves
run: npx vitest --project moves$SILENT
run-battle-tests:
name: Run battle tests
@ -100,6 +103,6 @@ jobs:
- name: Install Node.js dependencies
run: npm ci
- name: pre-test
run: npx vitest run --project pre
run: npx vitest run --project pre$SILENT
- name: test battle
run: npx vitest --project battle
run: npx vitest --project battle$SILENT