Skip to content

Commit

Permalink
Merge pull request #131 from hildjj/coveralls
Browse files Browse the repository at this point in the history
Switch back to coveralls. Fix pnpm audit issue.
  • Loading branch information
hildjj authored Feb 6, 2025
2 parents 962e624 + defc4f0 commit c58234c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 18 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ on:
pull_request:
branches:
- main
workflow_call:
secrets:
CODECOV_TOKEN:
required: true

jobs:
build:
Expand Down Expand Up @@ -42,7 +38,22 @@ jobs:
run: npm run lint
- name: Test
run: npm run ci
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
# Stay on coveralls instead of codecov, since hildjj doesn't own the
# repo directly, and it's too much work to figure out.
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
token: ${{ secrets.CODECOV_TOKEN }}
github-token: ${{ secrets.github_token }}
flag-name: node-${{ matrix.node-version }}
path-to-lcov: ./coverage/lcov.info
parallel: true
finish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: ./coverage/lcov.info
parallel-finished: true
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
cache: pnpm
- run: pnpm i -r
- run: npm run build
- run: npm pkg delete devDependencies scripts packageManager pnpm
- run: npm publish --access public --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,10 @@
"packageManager": "pnpm@10.2.0",
"engines": {
"node": ">=18"
},
"pnpm": {
"overrides": {
"cross-spawn": "7.0.6"
}
}
}
15 changes: 4 additions & 11 deletions pnpm-lock.yaml

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

0 comments on commit c58234c

Please sign in to comment.