File tree Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 88 push :
99 branches : [main, master]
1010 pull_request :
11- branches : [main, master]
1211
1312name : R-CMD-check.yaml
1413
4645
4746 - uses : r-lib/actions/setup-pandoc@v2
4847
49- # For file snapshot that uses png
50- - name : Install xquartz
51- if : runner.os == 'macOS'
52- run : brew install --cask xquartz
53-
5448 - uses : r-lib/actions/setup-r@v2
5549 with :
5650 r-version : ${{ matrix.config.r }}
Original file line number Diff line number Diff line change 44 push :
55 branches : [main, master]
66 pull_request :
7- branches : [main, master]
87 release :
98 types : [published]
109 workflow_dispatch :
Original file line number Diff line number Diff line change 44 push :
55 branches : [main, master]
66 pull_request :
7- branches : [main, master]
87
98name : test-coverage.yaml
109
@@ -35,14 +34,16 @@ jobs:
3534 clean = FALSE,
3635 install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
3736 )
37+ print(cov)
3838 covr::to_cobertura(cov)
3939 shell : Rscript {0}
4040
41- - uses : codecov/codecov-action@v4
41+ - uses : codecov/codecov-action@v5
4242 with :
43- fail_ci_if_error : ${{ github.event_name != 'pull_request' && true || false }}
44- file : ./cobertura.xml
45- plugin : noop
43+ # Fail if error if not on PR, or if on PR and token is given
44+ fail_ci_if_error : ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }}
45+ files : ./cobertura.xml
46+ plugins : noop
4647 disable_search : true
4748 token : ${{ secrets.CODECOV_TOKEN }}
4849
You can’t perform that action at this time.
0 commit comments