File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 branches : [main, master]
66 pull_request :
7- branches : [main, master]
7+ workflow_dispatch :
88
9- name : test-coverage
9+ name : test-coverage.yaml
1010
1111permissions : read-all
1212
@@ -35,14 +35,16 @@ jobs:
3535 clean = FALSE,
3636 install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
3737 )
38+ print(cov)
3839 covr::to_cobertura(cov)
3940 shell : Rscript {0}
4041
41- - uses : codecov/codecov-action@v4
42+ - uses : codecov/codecov-action@v5
4243 with :
43- fail_ci_if_error : ${{ github.event_name != 'pull_request' && true || false }}
44- file : ./cobertura.xml
45- plugin : noop
44+ # Fail if error if not on PR, or if on PR and token is given
45+ fail_ci_if_error : ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }}
46+ files : ./cobertura.xml
47+ plugins : noop
4648 disable_search : true
4749 token : ${{ secrets.CODECOV_TOKEN }}
4850
You can’t perform that action at this time.
0 commit comments