Skip to content

Commit 36de80d

Browse files
committed
Fix test-coverage GH Action
1 parent c9514f8 commit 36de80d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2-
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
1+
# .github/workflows/test-coverage.yml
2+
name: test-coverage
3+
34
on:
45
push:
56
branches: [main, master]
67
pull_request:
78
branches: [main, master]
89

9-
name: test-coverage
10-
1110
jobs:
1211
test-coverage:
1312
runs-on: ubuntu-latest
1413
env:
1514
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1615

1716
steps:
18-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1918

2019
- uses: r-lib/actions/setup-r@v2
2120
with:
@@ -25,6 +24,8 @@ jobs:
2524
with:
2625
extra-packages: any::covr
2726
needs: coverage
27+
# Optional: enable caching
28+
# cache-version: 1
2829

2930
- name: Test coverage
3031
run: |
@@ -38,13 +39,12 @@ jobs:
3839
- name: Show testthat output
3940
if: always()
4041
run: |
41-
## --------------------------------------------------------------------
42-
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
42+
find "${{ runner.temp }}/package" -name 'testthat.Rout*' -exec cat '{}' \; || true
4343
shell: bash
4444

4545
- name: Upload test results
4646
if: failure()
47-
uses: actions/upload-artifact@v3
47+
uses: actions/upload-artifact@v4
4848
with:
4949
name: coverage-test-failures
5050
path: ${{ runner.temp }}/package

0 commit comments

Comments
 (0)