not as an ENV but inside

This commit is contained in:
flx-sta 2024-09-10 12:13:11 -07:00
parent d7c8bb9a58
commit 88920ccdd6

View File

@ -1,8 +1,5 @@
name: Tests
env:
VITEST_OPTIONS: ${{ runner.debug && '' || '--silent' }}
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
@ -35,7 +32,7 @@ jobs:
run: npm ci
- name: Run Pre-test
working-directory: tests-action
run: npx vitest run --project pre $VITEST_OPTIONS
run: npx vitest run --project pre ${{ !runner.debug && '--silent' }}
run-tests:
name: Run Tests
@ -46,4 +43,4 @@ jobs:
uses: ./.github/workflows/run-test-template.yml
with:
project: ${{ matrix.project }}
options: $VITEST_OPTIONS
options: ${{ !runner.debug && '--silent' }}