From a6eda6fbac913392d617a3a2e12cd283cba4736c Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sun, 25 Feb 2024 22:10:06 +0100 Subject: [PATCH] infra(vitest): enable github-actions-reporter (#2683) --- .github/workflows/pr.yml | 2 ++ vitest.config.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 14aea7a3643..006918667dc 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -41,6 +41,8 @@ jobs: pnpm run build pnpm run test -u continue-on-error: true + env: + CI_PREFLIGHT: true - name: Check diff id: diff diff --git a/vitest.config.ts b/vitest.config.ts index 2bac6031fc0..1c73cfbb318 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -14,7 +14,9 @@ export default defineConfig({ reporter: ['clover', 'cobertura', 'lcov', 'text'], include: ['src'], }, - reporters: 'basic', + reporters: process.env.CI_PREFLIGHT + ? ['basic', 'github-actions'] + : ['basic'], sequence: { seed: VITEST_SEQUENCE_SEED, shuffle: true,