2
2
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3
3
on :
4
4
push :
5
- branches : [main, master, v2-branch ]
5
+ branches : [main, master]
6
6
pull_request :
7
+ branches : [main, master]
7
8
8
9
name : test-coverage.yaml
9
10
@@ -16,13 +17,13 @@ jobs:
16
17
GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
17
18
18
19
steps :
19
- - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
20
+ - uses : actions/checkout@v4
20
21
21
- - uses : ./ setup-r
22
+ - uses : r-lib/actions/ setup-r@v2
22
23
with :
23
24
use-public-rspm : true
24
25
25
- - uses : ./ setup-r-dependencies
26
+ - uses : r-lib/actions/ setup-r-dependencies@v2
26
27
with :
27
28
extra-packages : any::covr, any::xml2
28
29
needs : coverage
37
38
covr::to_cobertura(cov)
38
39
shell : Rscript {0}
39
40
40
- - uses : codecov/codecov-action@f1b7348826d750ac29741abc9d1623d8da5dcd4f
41
+ - uses : codecov/codecov-action@v4
41
42
with :
42
- # Fail if error if not on PR, or if on PR and token is given
43
- fail_ci_if_error : ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }}
43
+ fail_ci_if_error : ${{ github.event_name != 'pull_request' && true || false }}
44
44
file : ./cobertura.xml
45
45
plugin : noop
46
46
disable_search : true
55
55
56
56
- name : Upload test results
57
57
if : failure()
58
- uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
58
+ uses : actions/upload-artifact@v4
59
59
with :
60
60
name : coverage-test-failures
61
61
path : ${{ runner.temp }}/package
0 commit comments