diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8994a5abc1a..6404c695486 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,8 +1,5 @@ name: Tests -env: - SILENT: ${{ runner.debug == '1' && '' || '--silent' }} - on: # Trigger the workflow on push or pull request, # but only for the main branch @@ -35,9 +32,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 $SILENT + run: npx vitest run --project pre ${{ runner.debug == '1' && '' || '--silent' }} - name: test misc - run: npx vitest --project misc $SILENT + run: npx vitest --project misc ${{ runner.debug == '1' && '' || '--silent' }} run-abilities-tests: name: Run abilities tests @@ -52,9 +49,9 @@ jobs: - name: Install Node.js dependencies run: npm ci - name: pre-test - run: npx vitest run --project pre $SILENT + run: npx vitest run --project pre ${{ runner.debug == '1' && '' || '--silent' }} - name: test abilities - run: npx vitest --project abilities $SILENT + run: npx vitest --project abilities ${{ runner.debug == '1' && '' || '--silent' }} run-items-tests: name: Run items tests @@ -69,9 +66,9 @@ jobs: - name: Install Node.js dependencies run: npm ci - name: pre-test - run: npx vitest run --project pre $SILENT + run: npx vitest run --project pre ${{ runner.debug == '1' && '' || '--silent' }} - name: test items - run: npx vitest --project items $SILENT + run: npx vitest --project items ${{ runner.debug == '1' && '' || '--silent' }} run-moves-tests: name: Run moves tests @@ -86,9 +83,9 @@ jobs: - name: Install Node.js dependencies run: npm ci - name: pre-test - run: npx vitest run --project pre $SILENT + run: npx vitest run --project pre ${{ runner.debug == '1' && '' || '--silent' }} - name: test moves - run: npx vitest --project moves $SILENT + run: npx vitest --project moves ${{ runner.debug == '1' && '' || '--silent' }} run-battle-tests: name: Run battle tests @@ -103,6 +100,6 @@ jobs: - name: Install Node.js dependencies run: npm ci - name: pre-test - run: npx vitest run --project pre $SILENT + run: npx vitest run --project pre ${{ runner.debug == '1' && '' || '--silent' }} - name: test battle - run: npx vitest --project battle $SILENT \ No newline at end of file + run: npx vitest --project battle ${{ runner.debug == '1' && '' || '--silent' }} \ No newline at end of file