Skip to content

Commit c9b3838

Browse files
authored
Upgrade action
1 parent 375624a commit c9b3838

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/test-coverage.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141
- name: Create Junit Report
4242
if: always()
4343
run: |
44-
testthat::test_local(reporter = testthat::JunitReporter$new("./junit.xml"))
44+
test_out <- path.expand(file.path(getwd(), "junit.xml"))
45+
testthat::test_local(reporter = testthat::JunitReporter$new(test_out))
4546
shell: Rscript {0}
4647

4748
- name: Upload test results to Codecov
@@ -54,12 +55,12 @@ jobs:
5455
token: ${{ secrets.CODECOV_TOKEN }}
5556

5657
- name: Upload coverage report
57-
uses: codecov/codecov-action@v4
58+
uses: codecov/codecov-action@v5
5859
with:
5960
# Fail if error if not on PR, or if on PR and token is given
6061
fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }}
61-
file: ./cobertura.xml
62-
plugin: noop
62+
files: ./cobertura.xml
63+
plugins: noop
6364
disable_search: true
6465
token: ${{ secrets.CODECOV_TOKEN }}
6566

0 commit comments

Comments
 (0)