Skip to content

Commit

Permalink
infra(vitest): enable github-actions-reporter (#2683)
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Feb 25, 2024
1 parent c45537f commit a6eda6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a6eda6f

Please sign in to comment.