Skip to content

Commit 66104d5

Browse files
committed
feat: add Codacy coverage reporter and update coverage settings in workflows and configuration files
1 parent 4f29dd6 commit 66104d5

File tree

7 files changed

+385
-1
lines changed

7 files changed

+385
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,9 @@ jobs:
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3838
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3939
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
40+
41+
- name: Codacy Coverage Reporter
42+
uses: codacy/codacy-coverage-reporter-action@v1.3.0
43+
with:
44+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
45+
coverage-reports: coverage/lcov.info

.github/workflows/test-pr.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,8 @@ jobs:
2323
cache: 'npm'
2424
- run: npm ci
2525
- run: make test
26+
27+
- uses: codacy/codacy-coverage-reporter-action@v1.3.0
28+
with:
29+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
30+
coverage-reports: coverage/lcov.info

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2+
coverage
23
.DS_Store

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ lint:
1010
npx prettier --write "**/*.md" "**/*.json" "**/*.js" "**/*.ts" --log-level warn
1111

1212
test: lint
13-
CI=CI npx vitest
13+
CI=CI npx vitest --coverage
1414

1515
update:
1616
npx npm-check-updates -u

0 commit comments

Comments
 (0)