Skip to content

Commit 9289ea8

Browse files
committed
Use GitHub Action to send code coverage to codecov
1 parent 013080a commit 9289ea8

File tree

3 files changed

+18
-427
lines changed

3 files changed

+18
-427
lines changed

.github/workflows/linting-and-unit-testing.yml

+17-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,24 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
12+
1213
- name: Use Node.js v22
1314
uses: actions/setup-node@v4
1415
with:
1516
node-version: '22.x'
16-
- run: npm ci
17-
- run: npm run lint
18-
- run: npm test
17+
18+
- name: Install Node.js dependencies
19+
run: npm ci
20+
21+
- name: Lint and test
22+
run: |
23+
npm run lint
24+
npm test
25+
npm run coverage
26+
27+
- name: Upload code coverage to codecov
28+
# https://github.com/marketplace/actions/codecov
29+
uses: codecov/codecov-action@v5
30+
with:
31+
token: ${{ secrets.CODECOV_TOKEN }}
32+
files: coverage.lcov

0 commit comments

Comments
 (0)