diff options
| author | ST-DDT <[email protected]> | 2024-02-25 22:10:06 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-25 21:10:06 +0000 |
| commit | a6eda6fbac913392d617a3a2e12cd283cba4736c (patch) | |
| tree | 1bdbb0038892a357d270572c60d387babc832c05 | |
| parent | c45537f6d4f3a28d8be1ebbe03567004c04af145 (diff) | |
| download | faker-a6eda6fbac913392d617a3a2e12cd283cba4736c.tar.xz faker-a6eda6fbac913392d617a3a2e12cd283cba4736c.zip | |
infra(vitest): enable github-actions-reporter (#2683)
| -rw-r--r-- | .github/workflows/pr.yml | 2 | ||||
| -rw-r--r-- | vitest.config.ts | 4 |
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, |
