Skip to content

Commit

Permalink
chore(backend): coverage in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLucqs committed Apr 11, 2024
1 parent 61044b1 commit 96c5dd3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ jobs:
run: pnpm check
- name: 'Test'
run: pnpm vitest --watch=false
- name: 'Coverage'
run: pnpm vitest --coverage.enabled true
- name: 'Report Coverage'
working-directory: ./backend
if: always()
uses: davelosert/vitest-coverage-report-action@v2
5 changes: 4 additions & 1 deletion backend/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ import { defineConfig } from 'vitest/config';

export default defineConfig({
plugins: [tsconfigPaths()],
test: { hookTimeout: 50000, coverage: { provider: 'istanbul' } },
test: {
hookTimeout: 50000,
coverage: { provider: 'istanbul', reporter: ['text', 'json-summary', 'json'] },
},
});

0 comments on commit 96c5dd3

Please sign in to comment.