Skip to content

Commit 9d4070d

Browse files
committed
☕ Add Codecov action
1 parent 502dddf commit 9d4070d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,15 @@ jobs:
4141
deno-version: ${{ env.DENO_VERSION }}
4242
- name: Test
4343
run: |
44-
deno task test
44+
deno task test:coverage
4545
timeout-minutes: 5
46+
- run: |
47+
deno task coverage --lcov > coverage.lcov
48+
- uses: codecov/codecov-action@v4
49+
with:
50+
os: ${{ runner.os }}
51+
files: ./coverage.lcov
52+
token: ${{ secrets.CODECOV_TOKEN }}
4653

4754
build-npm:
4855
runs-on: ubuntu-latest

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/errorutil/mod.ts)
77
[![Test](https://github.com/lambdalisue/deno-errorutil/workflows/Test/badge.svg)](https://github.com/lambdalisue/deno-errorutil/actions?query=workflow%3ATest)
88
[![npm version](https://badge.fury.io/js/@lambdalisue%2Ferrorutil.svg)](https://badge.fury.io/js/@lambdalisue%2Ferrorutil)
9+
[![codecov](https://codecov.io/gh/lambdalisue/deno-errorutil/graph/badge.svg?token=O0cA5Xj5la)](https://codecov.io/gh/lambdalisue/deno-errorutil)
910

1011
A utility pack for handling error.
1112

0 commit comments

Comments
 (0)