File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change 11
11
12
12
name : GitHub Actions CI
13
13
14
+ permissions : read-all
15
+
14
16
# # change if caches needs to be refreshed
15
17
env :
16
- cache-version : v1
18
+ cache-version : v2
17
19
18
20
jobs :
19
21
R-CMD-check :
@@ -49,21 +51,31 @@ jobs:
49
51
extra-packages : |
50
52
any::rcmdcheck
51
53
any::covr
52
- needs : check
54
+ needs : coverage
53
55
54
56
- uses : r-lib/actions/check-r-package@v2
55
57
with :
56
58
upload-snapshots : true
57
59
58
60
- name : Test coverage
59
61
run : |
60
- covr::codecov(
62
+ cov <- covr::codecov(
61
63
quiet = FALSE,
62
64
clean = TRUE,
63
- token = "${{ secrets.CODECOV_TOKEN }}"
65
+ token = "${{ secrets.CODECOV_TOKEN }}",
66
+ install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
64
67
)
68
+ covr::to_cobertura(cov)
65
69
shell : Rscript {0}
66
70
71
+ - uses : codecov/codecov-action@v4
72
+ with :
73
+ fail_ci_if_error : ${{ github.event_name != 'pull_request' && true || false }}
74
+ file : ./cobertura.xml
75
+ plugin : noop
76
+ disable_search : true
77
+ token : ${{ secrets.CODECOV_TOKEN }}
78
+
67
79
- name : Show testthat output
68
80
if : always()
69
81
run : |
You can’t perform that action at this time.
0 commit comments