This is an automated email from the ASF dual-hosted git repository.
hsluoyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/casbin-node-casbin.git
The following commit(s) were added to refs/heads/master by this push:
new 406c459 fix: switch to codecov in CI
406c459 is described below
commit 406c459df0b1aa2a0db5ad5e0f5b67bf49fec009
Author: Yang Luo <[email protected]>
AuthorDate: Sat Apr 25 17:17:12 2026 +0800
fix: switch to codecov in CI
---
.github/workflows/main.yml | 20 +++++---------------
README.md | 2 +-
jest.config.js | 2 ++
package.json | 1 -
4 files changed, 8 insertions(+), 17 deletions(-)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 26eeceb..95a1217 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -21,12 +21,12 @@ jobs:
- run: yarn lint
- run: yarn test
- run: yarn coverage
- - name: Coveralls
- uses: coverallsapp/github-action@master
+ - name: Upload coverage to Codecov
+ uses: codecov/codecov-action@v4
with:
- github-token: ${{ secrets.GITHUB_TOKEN }}
- flag-name: run-${{ matrix.node-version }}
- parallel: true
+ token: ${{ secrets.CODECOV_TOKEN }}
+ flags: node-${{ matrix.node-version }}
+ fail_ci_if_error: false
semantic-release:
needs: [test]
@@ -40,13 +40,3 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
-
- finish:
- needs: test
- runs-on: ubuntu-latest
- steps:
- - name: Coveralls Finished
- uses: coverallsapp/github-action@master
- with:
- github-token: ${{ secrets.github_token }}
- parallel-finished: true
diff --git a/README.md b/README.md
index 3cb25b0..d4c17cf 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# Node-Casbin
[](https://github.com/apache/casbin-node-casbin/actions)
-[](https://coveralls.io/github/apache/casbin-node-casbin?branch=master)
+[](https://codecov.io/gh/apache/casbin-node-casbin)
[](https://github.com/apache/casbin-node-casbin/releases/latest)
[![NPM version][npm-image]][npm-url]
[![NPM download][download-image]][download-url]
diff --git a/jest.config.js b/jest.config.js
index 9269a67..7356976 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -7,4 +7,6 @@ module.exports = {
'csv-parse': '<rootDir>/node_modules/csv-parse/dist/cjs/sync.cjs',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
+ coverageReporters: ['lcov', 'text'],
+ collectCoverageFrom: ['src/**/*.ts'],
};
diff --git a/package.json b/package.json
index 4d91975..cc402b4 100644
--- a/package.json
+++ b/package.json
@@ -29,7 +29,6 @@
"@types/picomatch": "^2.2.2",
"@typescript-eslint/eslint-plugin": "^4.17.0",
"@typescript-eslint/parser": "^4.17.0",
- "coveralls": "^3.0.2",
"cz-conventional-changelog": "^3.2.0",
"eslint": "^7.22.0",
"eslint-config-prettier": "^6.12.0",
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]