diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5a1d34226..0cb2239f3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,10 +27,12 @@ jobs: uses: actions/setup-node@v3 with: node-version: 20.x - - run: npm ci - run: npm run codecov:test262 + - uses: codecov/codecov-action@v4 + with: + files: coverage/test262.lcov env: - HEAD_SHA: ${{ github.event.pull_request.head.sha }} + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} test-cookbook: runs-on: ubuntu-latest steps: diff --git a/polyfill/ci_codecov_test262.sh b/polyfill/ci_codecov_test262.sh index cc637995e..48a7ba4be 100755 --- a/polyfill/ci_codecov_test262.sh +++ b/polyfill/ci_codecov_test262.sh @@ -2,11 +2,6 @@ set -ex -SHA_ARG="" -if [ -n "$HEAD_SHA" ]; then - SHA_ARG="-c $HEAD_SHA" -fi - npm run build262 export NODE_V8_COVERAGE=coverage/tmp/ @@ -33,8 +28,6 @@ c8 report --reporter=text-lcov --temp-directory=$NODE_V8_COVERAGE \ --exclude=polyfill/runtest262.mjs \ --exclude-after-remap > coverage/test262.lcov -codecov $SHA_ARG -f coverage/test262.lcov - rm -rf $NODE_V8_COVERAGE if [ $failed -ne 0 ]; then diff --git a/polyfill/package.json b/polyfill/package.json index 9c5a947ff..c0f424f81 100644 --- a/polyfill/package.json +++ b/polyfill/package.json @@ -78,7 +78,6 @@ "@rollup/plugin-node-resolve": "^15.1.0", "@rollup/plugin-replace": "^5.0.2", "c8": "^7.14.0", - "codecov": "^3.8.3", "rollup": "^3.23.1", "rollup-plugin-node-polyfills": "^0.2.1" },