Skip to content

Commit ea37541

Browse files
authored
setup codecov (#10)
1 parent 70497a4 commit ea37541

File tree

5 files changed

+1333
-18
lines changed

5 files changed

+1333
-18
lines changed

.github/workflows/test.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,21 @@ jobs:
2424
- name: Install dependencies
2525
run: npm install --ignore-scripts --no-audit --no-fund
2626
- name: Lint JS
27-
run: npx --yes oxlint@latest -D perf
27+
run: npx oxlint@latest -D perf
2828
- name: Check types
2929
run: npm run check
3030
- name: Build package
3131
run: npm run build
32+
env:
33+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3234
- name: Lint package
33-
run: npx --yes publint
35+
run: npx publint
36+
- name: Run tests
37+
run: npx c8 --reporter=lcov npm test
38+
- name: Upload coverage reports to Codecov
39+
uses: codecov/codecov-action@v4.0.1
40+
with:
41+
token: ${{ secrets.CODECOV_TOKEN }}
3442
test:
3543
name: Unit tests
3644
runs-on: ubuntu-latest

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2-
dist
2+
dist
3+
coverage

0 commit comments

Comments
 (0)