File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 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+
34on :
45 push :
56 branches : [main, master]
67 pull_request :
78 branches : [main, master]
89
9- name : test-coverage
10-
1110jobs :
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 :
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
You can’t perform that action at this time.
0 commit comments