Skip to content

Commit cb4d414

Browse files
committed
☕ Add code coverage
1 parent eee23a6 commit cb4d414

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,10 @@ jobs:
117117
DENOPS_TEST_NVIM_EXECUTABLE: ${{ steps.nvim.outputs.executable_path }}
118118
working-directory: ./repo
119119
timeout-minutes: 3
120+
- run: |
121+
deno coverage --unstable .coverage --lcov > coverage.lcov
122+
working-directory: ./repo
123+
- uses: codecov/codecov-action@v3
124+
with:
125+
os: ${{ runner.os }}
126+
files: ./repo/coverage.lcov

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
/.tools
2+
/.coverage
23
deno.lock
4+

deno.jsonc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"lock": false,
33
"tasks": {
4-
"test": "deno test --unstable -A --doc --parallel --shuffle",
4+
"test": "deno test --unstable -A --doc --parallel --shuffle --coverage=.coverage",
55
"check": "deno check --unstable $(find . -name '*.ts')",
6+
"coverage": "deno coverage --unstable .coverage",
67
"upgrade": "deno run -A https://deno.land/x/udd/main.ts $(find . -name '*.ts')",
78
"gen:function": "deno run --unstable -A ./scripts/gen-function/gen-function.ts",
89
"gen:option": "deno run --unstable -A ./scripts/gen-option/gen-option.ts",

0 commit comments

Comments
 (0)