From 016eaebdf62058f09ccd145622b435b0a4997a10 Mon Sep 17 00:00:00 2001 From: "Diego H." Date: Mon, 2 Dec 2024 11:40:43 +0100 Subject: [PATCH] Upgrade codecov action --- .github/workflows/test-coverage.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 775c4071..45f31720 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -41,7 +41,8 @@ jobs: - name: Create Junit Report if: always() run: | - testthat::test_local(reporter = testthat::JunitReporter$new("./junit.xml")) + test_out <- path.expand(file.path(getwd(), "junit.xml")) + testthat::test_local(reporter = testthat::JunitReporter$new(test_out)) shell: Rscript {0} - name: Upload test results to Codecov @@ -54,12 +55,12 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} - name: Upload coverage report - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v5 with: # Fail if error if not on PR, or if on PR and token is given fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }} - file: ./cobertura.xml - plugin: noop + files: ./cobertura.xml + plugins: noop disable_search: true token: ${{ secrets.CODECOV_TOKEN }}