Skip to content

Commit

Permalink
Merge pull request #279 from H4ad/fix/code-coverage
Browse files Browse the repository at this point in the history
chore(codecov): fix issues with upload coverage
  • Loading branch information
H4ad authored Nov 9, 2024
2 parents d7f53c0 + 4b5b39e commit 3a891b8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 108 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ jobs:
run: npm test

- name: Get Coverage Info
run: npm run coverage
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

docs:
runs-on: ubuntu-latest
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ jobs:

- name: Get Coverage Info
if: ${{ steps.release.outputs.release_created }}
run: npm run coverage
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: NPM Publish
run: npm publish --provenance --access public
Expand Down
109 changes: 5 additions & 104 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"build:docs": "tsc -p tsconfig.doc.json",
"clean": "rm -rf ./lib/",
"cm": "cz",
"coverage": "codecov",
"lint": "eslint ./src/ ./test/ --fix",
"docs:generate": "npm run docs:generate:parsing && npm run docs:generate:markdown && npm run docs:generate:api-pages",
"docs:generate:parsing": "npm run build:docs && npx tsx scripts/parse-docs.ts",
Expand Down Expand Up @@ -106,7 +105,6 @@
"@typescript-eslint/parser": "6.15.0",
"@vitest/coverage-v8": "1.1.3",
"body-parser": "1.20.2",
"codecov": "3.8.3",
"commitizen": "4.3.0",
"cors": "2.8.5",
"cz-conventional-changelog": "3.3.0",
Expand Down

0 comments on commit 3a891b8

Please sign in to comment.