Skip to content

Commit 3b7d06f

Browse files
committed
update test-coverage GHA
1 parent 03a8e7f commit 3b7d06f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: .github/workflows/test-coverage.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
5-
branches: [main, master, v2-branch]
5+
branches: [main, master]
66
pull_request:
7+
branches: [main, master]
78

89
name: test-coverage.yaml
910

@@ -16,13 +17,13 @@ jobs:
1617
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1718

1819
steps:
19-
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
20+
- uses: actions/checkout@v4
2021

21-
- uses: ./setup-r
22+
- uses: r-lib/actions/setup-r@v2
2223
with:
2324
use-public-rspm: true
2425

25-
- uses: ./setup-r-dependencies
26+
- uses: r-lib/actions/setup-r-dependencies@v2
2627
with:
2728
extra-packages: any::covr, any::xml2
2829
needs: coverage
@@ -37,10 +38,9 @@ jobs:
3738
covr::to_cobertura(cov)
3839
shell: Rscript {0}
3940

40-
- uses: codecov/codecov-action@f1b7348826d750ac29741abc9d1623d8da5dcd4f
41+
- uses: codecov/codecov-action@v4
4142
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 }}
4444
file: ./cobertura.xml
4545
plugin: noop
4646
disable_search: true
@@ -55,7 +55,7 @@ jobs:
5555

5656
- name: Upload test results
5757
if: failure()
58-
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
58+
uses: actions/upload-artifact@v4
5959
with:
6060
name: coverage-test-failures
6161
path: ${{ runner.temp }}/package

0 commit comments

Comments
 (0)