From 6082427fbd2590db7dfe860b97029c08a1f6eb08 Mon Sep 17 00:00:00 2001 From: Chris Moesel Date: Mon, 21 Oct 2024 15:57:33 -0400 Subject: [PATCH] Use CodeCov GitHub Action in CI instead of npx codecov The npx codecov script is deprecated, so use the GitHub action instead. --- .github/workflows/ci-workflow.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index b81690d7a..171f7cb60 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -53,6 +53,10 @@ jobs: - run: date +"%Y-%m-%d %T" - run: npm install - run: ./bin/check_for_nonassertive_tests.sh - - run: npx nyc --reporter=lcov npm test && npx codecov + - run: npx nyc --reporter=lcov npm test env: CI: true + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }}