Skip to content

Commit 33c9bf0

Browse files
committed
A few additional updates of GA
1 parent a19d9df commit 33c9bf0

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/GitHub_Actions_CI.yaml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ on:
1111

1212
name: GitHub Actions CI
1313

14+
permissions: read-all
15+
1416
## change if caches needs to be refreshed
1517
env:
16-
cache-version: v1
18+
cache-version: v2
1719

1820
jobs:
1921
R-CMD-check:
@@ -49,21 +51,31 @@ jobs:
4951
extra-packages: |
5052
any::rcmdcheck
5153
any::covr
52-
needs: check
54+
needs: coverage
5355

5456
- uses: r-lib/actions/check-r-package@v2
5557
with:
5658
upload-snapshots: true
5759

5860
- name: Test coverage
5961
run: |
60-
covr::codecov(
62+
cov <- covr::codecov(
6163
quiet = FALSE,
6264
clean = TRUE,
63-
token = "${{ secrets.CODECOV_TOKEN }}"
65+
token = "${{ secrets.CODECOV_TOKEN }}",
66+
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
6467
)
68+
covr::to_cobertura(cov)
6569
shell: Rscript {0}
6670

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+
6779
- name: Show testthat output
6880
if: always()
6981
run: |

0 commit comments

Comments
 (0)