Skip to content

Commit 2883f25

Browse files
authored
Merge pull request #322 from stan-dev/update-test-coverage-workflow
Update test-coverage.yaml
2 parents eace28a + 7fa786c commit 2883f25

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/test-coverage.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1717

1818
steps:
19-
- uses: actions/checkout@v6
19+
- uses: actions/checkout@v4
2020

2121
- uses: r-lib/actions/setup-r@v2
2222
with:
@@ -34,15 +34,16 @@ jobs:
3434
clean = FALSE,
3535
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
3636
)
37+
print(cov)
3738
covr::to_cobertura(cov)
3839
shell: Rscript {0}
3940

40-
- uses: codecov/codecov-action@v4
41+
- uses: codecov/codecov-action@v5
4142
with:
4243
# Fail if error if not on PR, or if on PR and token is given
4344
fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }}
44-
file: ./cobertura.xml
45-
plugin: noop
45+
files: ./cobertura.xml
46+
plugins: noop
4647
disable_search: true
4748
token: ${{ secrets.CODECOV_TOKEN }}
4849

@@ -55,7 +56,7 @@ jobs:
5556

5657
- name: Upload test results
5758
if: failure()
58-
uses: actions/upload-artifact@v6
59+
uses: actions/upload-artifact@v4
5960
with:
6061
name: coverage-test-failures
6162
path: ${{ runner.temp }}/package

0 commit comments

Comments
 (0)