Skip to content
This repository was archived by the owner on Dec 27, 2025. It is now read-only.

Commit a92f897

Browse files
committed
chore: add codecov support
1 parent f020185 commit a92f897

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,13 @@ jobs:
2929
- uses: denoland/setup-deno@v2
3030
with:
3131
deno-version: ${{ env.DENO_VERSION }}
32-
- run: deno task test
32+
- run: deno task test:coverage
3333
timeout-minutes: 5
34+
- run: |
35+
deno task coverage --lcov > coverage.lcov
36+
- name: Upload coverage reports to Codecov
37+
uses: codecov/codecov-action@v5
38+
with:
39+
files: ./coverage.lcov
40+
token: ${{ secrets.CODECOV_TOKEN }}
41+
slug: jsr-probitas/cli

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
.DS_Store
2+
.coverage/
13
dist/

deno.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"tasks": {
44
"check": "deno check ./**/*.ts",
55
"test": "deno test -A --parallel --shuffle",
6+
"test:coverage": "deno task test --coverage=.coverage",
7+
"coverage": "deno coverage .coverage --include='src/'",
68
"verify": "deno fmt && deno lint && deno task check && deno task test",
79
"probitas": "deno run -A --unstable-kv --lock ./deno.lock ./mod.ts",
810
"compile": "deno run -A .scripts/compile.ts",

0 commit comments

Comments
 (0)