Skip to content

Commit b03db1d

Browse files
committed
Add CodeCov to the CI
1 parent 97ab4ed commit b03db1d

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

.github/workflows/tests.yml

+18-9
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,21 @@ jobs:
1111
unit:
1212
runs-on: macos-latest
1313
steps:
14-
- uses: actions/checkout@v4
15-
- uses: actions/setup-node@v4
16-
with:
17-
node-version: 20
18-
cache: npm
19-
- name: Install modules
20-
run: npm install
21-
- name: Run tests
22-
run: npm run test -- --coverage
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
cache: npm
19+
- name: Install modules
20+
run: npm install
21+
- name: Run tests
22+
run: npm run test -- --coverage
23+
- name: Upload coverage to Codecov
24+
uses: codecov/codecov-action@v4
25+
with:
26+
files: ./coverage/lcov.info
27+
flags: unittests
28+
fail_ci_if_error: false
29+
verbose: true
30+
env:
31+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ node_modules/
44
/.data/
55
gl-prettier-codequality.json
66
/.eslintcache
7+
/coverage/

0 commit comments

Comments
 (0)