From 8351f0f58ed9c6b0db5b7c3ba5d15f85dcf42f3b Mon Sep 17 00:00:00 2001 From: Chen Fengyuan Date: Sat, 23 Nov 2024 21:14:37 +0800 Subject: [PATCH] build: uploading reports to Codecov using the Codecov Action --- .github/workflows/ci.yml | 8 +++++--- package.json | 1 - 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 72c8e16d7..c64663b5c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,12 +11,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 16 - run: npm install - run: npm run lint - run: npm run build - run: npm test - - run: npm run test:coverage + - uses: codecov/codecov-action@v5 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/package.json b/package.json index b7ad8b0e1..281bfd67b 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,6 @@ "release": "npm run clean && npm run lint && npm run build && npm run compress && npm run copy && npm test", "start": "npm-run-all --parallel watch:*", "test": "karma start", - "test:coverage": "cat coverage/lcov.info | codecov", "watch:css": "postcss src/index.css -o docs/css/cropper.css -m -w", "watch:js": "rollup -c -m -w" },