mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-18 22:32:32 +02:00
remove env and replace with logic in each call
This commit is contained in:
parent
8f7009bd19
commit
a7e5e3c690
23
.github/workflows/tests.yml
vendored
23
.github/workflows/tests.yml
vendored
@ -1,8 +1,5 @@
|
|||||||
name: Tests
|
name: Tests
|
||||||
|
|
||||||
env:
|
|
||||||
SILENT: ${{ runner.debug == '1' && '' || '--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
|
||||||
@ -35,9 +32,9 @@ jobs:
|
|||||||
run: npm ci # Use 'npm ci' to install dependencies
|
run: npm ci # Use 'npm ci' to install dependencies
|
||||||
|
|
||||||
- name: pre-test # pre-test to check overrides
|
- name: pre-test # pre-test to check overrides
|
||||||
run: npx vitest run --project pre $SILENT
|
run: npx vitest run --project pre ${{ runner.debug == '1' && '' || '--silent' }}
|
||||||
- name: test misc
|
- name: test misc
|
||||||
run: npx vitest --project misc $SILENT
|
run: npx vitest --project misc ${{ runner.debug == '1' && '' || '--silent' }}
|
||||||
|
|
||||||
run-abilities-tests:
|
run-abilities-tests:
|
||||||
name: Run abilities tests
|
name: Run abilities tests
|
||||||
@ -52,9 +49,9 @@ jobs:
|
|||||||
- name: Install Node.js dependencies
|
- name: Install Node.js dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: pre-test
|
- name: pre-test
|
||||||
run: npx vitest run --project pre $SILENT
|
run: npx vitest run --project pre ${{ runner.debug == '1' && '' || '--silent' }}
|
||||||
- name: test abilities
|
- name: test abilities
|
||||||
run: npx vitest --project abilities $SILENT
|
run: npx vitest --project abilities ${{ runner.debug == '1' && '' || '--silent' }}
|
||||||
|
|
||||||
run-items-tests:
|
run-items-tests:
|
||||||
name: Run items tests
|
name: Run items tests
|
||||||
@ -69,9 +66,9 @@ jobs:
|
|||||||
- name: Install Node.js dependencies
|
- name: Install Node.js dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: pre-test
|
- name: pre-test
|
||||||
run: npx vitest run --project pre $SILENT
|
run: npx vitest run --project pre ${{ runner.debug == '1' && '' || '--silent' }}
|
||||||
- name: test items
|
- name: test items
|
||||||
run: npx vitest --project items $SILENT
|
run: npx vitest --project items ${{ runner.debug == '1' && '' || '--silent' }}
|
||||||
|
|
||||||
run-moves-tests:
|
run-moves-tests:
|
||||||
name: Run moves tests
|
name: Run moves tests
|
||||||
@ -86,9 +83,9 @@ jobs:
|
|||||||
- name: Install Node.js dependencies
|
- name: Install Node.js dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: pre-test
|
- name: pre-test
|
||||||
run: npx vitest run --project pre $SILENT
|
run: npx vitest run --project pre ${{ runner.debug == '1' && '' || '--silent' }}
|
||||||
- name: test moves
|
- name: test moves
|
||||||
run: npx vitest --project moves $SILENT
|
run: npx vitest --project moves ${{ runner.debug == '1' && '' || '--silent' }}
|
||||||
|
|
||||||
run-battle-tests:
|
run-battle-tests:
|
||||||
name: Run battle tests
|
name: Run battle tests
|
||||||
@ -103,6 +100,6 @@ jobs:
|
|||||||
- name: Install Node.js dependencies
|
- name: Install Node.js dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: pre-test
|
- name: pre-test
|
||||||
run: npx vitest run --project pre $SILENT
|
run: npx vitest run --project pre ${{ runner.debug == '1' && '' || '--silent' }}
|
||||||
- name: test battle
|
- name: test battle
|
||||||
run: npx vitest --project battle $SILENT
|
run: npx vitest --project battle ${{ runner.debug == '1' && '' || '--silent' }}
|
Loading…
Reference in New Issue
Block a user