Skip to content

Commit 65d567d

Browse files
authored
Merge pull request #212 from vim-denops/codecov
☕ Add code coverage
2 parents eee23a6 + d1114c9 commit 65d567d

File tree

5 files changed

+13
-1
lines changed

5 files changed

+13
-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+

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![Vim 9.0.1499 or above](https://img.shields.io/badge/Vim-Support%209.0.1499-yellowgreen.svg?logo=vim)](https://github.com/vim/vim/tree/v9.0.1499)
44
[![Neovim 0.8.0 or above](https://img.shields.io/badge/Neovim-Support%200.8.0-yellowgreen.svg?logo=neovim&logoColor=white)](https://github.com/neovim/neovim/tree/v0.8.0)
55
[![Test](https://github.com/vim-denops/deno-denops-std/actions/workflows/test.yml/badge.svg)](https://github.com/vim-denops/deno-denops-std/actions/workflows/test.yml)
6+
[![codecov](https://codecov.io/github/vim-denops/deno-denops-std/branch/main/graph/badge.svg?token=RKAZMUQ3D9)](https://codecov.io/github/vim-denops/deno-denops-std)
67
[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/denops_std/mod.ts)
78
[![Documentation](https://img.shields.io/badge/denops-Documentation-yellow.svg)](https://vim-denops.github.io/denops-documentation/)
89
[![deno land](http://img.shields.io/badge/available%20on-deno.land/x/denops__std-lightgrey.svg?logo=deno)](https://deno.land/x/denops_std)

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",

denops_std/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# denops_std
22

33
[![Test](https://github.com/vim-denops/deno-denops-std/actions/workflows/test.yml/badge.svg)](https://github.com/vim-denops/deno-denops-std/actions/workflows/test.yml)
4+
[![codecov](https://codecov.io/github/vim-denops/deno-denops-std/branch/main/graph/badge.svg?token=RKAZMUQ3D9)](https://codecov.io/github/vim-denops/deno-denops-std)
45
[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/denops_std/mod.ts)
56
[![Documentation](https://img.shields.io/badge/denops-Documentation-yellow.svg)](https://vim-denops.github.io/denops-documentation/)
67
[![deno land](http://img.shields.io/badge/available%20on-deno.land/x/denops__std-lightgrey.svg?logo=deno)](https://deno.land/x/denops_std)

0 commit comments

Comments
 (0)