Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
name: Build & Test
runs-on: ubuntu-latest

permissions:
contents: read

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
Expand All @@ -34,7 +37,20 @@ jobs:
run: npm run build

- name: Test
if: matrix.node-version != '20.x'
run: npm test

- name: Test with coverage
if: matrix.node-version == '20.x'
run: npm run test:coverage

- name: Upload coverage to Codecov
if: matrix.node-version == '20.x'
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/cobertura-coverage.xml
fail_ci_if_error: true

- name: Lint (Biome)
run: npm run check
2 changes: 1 addition & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default defineConfig({
environment: 'node',
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
reporter: ['text', 'json', 'html', 'cobertura'],
include: ['src/**/*.ts'],
exclude: ['src/**/index.ts'],
},
Expand Down
Loading