diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2a78ec252b8..a0825596362 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 \ No newline at end of file + run: npx vitest --project battle$SILENT \ No newline at end of file