Skip to content

Commit 6921c2f

Browse files
committed
ci: add coverage workflow
1 parent daefa50 commit 6921c2f

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/coverage.yml

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

.nvmrc

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

0 commit comments

Comments
 (0)