Skip to content

Commit

Permalink
Switch to Codecov GitHub Action
Browse files Browse the repository at this point in the history
The codecov-node uploader is deprecated and just broke permanently. It is
replaced by the GitHub Action.
  • Loading branch information
ptomato committed Sep 23, 2024
1 parent b3dbef0 commit d17322e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 0 additions & 7 deletions polyfill/ci_codecov_test262.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion polyfill/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit d17322e

Please sign in to comment.