Skip to content

Commit 4f4fd03

Browse files
committed
ci: add coverage workflow
1 parent daefa50 commit 4f4fd03

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/coverage.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
push:
3+
paths-ignore:
4+
- '*.md'
5+
pull_request:
6+
7+
env:
8+
CI: true
9+
NODE_ENV: cov
10+
11+
jobs
12+
coverage:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/setup-node@v4
16+
- uses: actions/checkout@v4
17+
- run: npm install
18+
- name: run coverage
19+
run: npx -y c8 --reporter=lcov npm test
20+
- name: codecov
21+
uses: codecov/codecov-action@v2
22+
- name: Coveralls
23+
uses: coverallsapp/github-action@master
24+
with:
25+
github-token: ${{ secrets.github_token }}

.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)