Skip to content

Commit

Permalink
test: prepare for coverage badge
Browse files Browse the repository at this point in the history
  • Loading branch information
cshawaus committed Feb 25, 2024
1 parent 30504e3 commit 539629d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
name: Install pnpm
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8

- uses: actions/setup-node@v4
name: Install Node.js
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
- name: Install Dependencies
run: pnpm install --frozen-lockfile

- name: Lint
Expand All @@ -36,7 +36,6 @@ jobs:
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: coverage/cobertura-coverage.xml
badge: true

- name: Build
run: pnpm build
3 changes: 2 additions & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ export default defineConfig({
test: {
coverage: {
provider: 'v8',
reporter: ['cobertura', 'text'],
reporter: ['cobertura', 'json', 'json-summary', 'text'],
reportsDirectory: '../coverage',
reportOnFailure: true,
},

reporters: process.env.GITHUB_ACTIONS ? ['dot', 'github-actions'] : ['dot'],
Expand Down

0 comments on commit 539629d

Please sign in to comment.