Skip to content

Commit

Permalink
Upgrade coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan authored Dec 2, 2024
1 parent 0fa1332 commit c3ace7c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

Expand Down

0 comments on commit c3ace7c

Please sign in to comment.