diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 7b1bca1..7d3f5be 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 }}