aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/pr.yml2
-rw-r--r--vitest.config.ts4
2 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
index 14aea7a3..00691866 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 2bac6031..1c73cfbb 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,