Skip to content

Commit 7040a80

Browse files
committed
update github actions
1 parent 7411ece commit 7040a80

File tree

4 files changed

+29
-6
lines changed

4 files changed

+29
-6
lines changed

.github/workflows/check-standard.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
R_KEEP_PKG_SOURCE: yes
3131

3232
steps:
33-
- uses: actions/checkout@v3
33+
- uses: actions/checkout@v4
3434

3535
- uses: r-lib/actions/setup-pandoc@v2
3636

.github/workflows/lint.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
env:
1515
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818

1919
- uses: r-lib/actions/setup-r@v2
2020
with:
@@ -28,3 +28,5 @@ jobs:
2828
- name: Lint
2929
run: lintr::lint_package()
3030
shell: Rscript {0}
31+
env:
32+
LINTR_ERROR_ON_LINT: true

.github/workflows/pkgdown.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ jobs:
1919
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
2020
env:
2121
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
22+
permissions:
23+
contents: write
2224
steps:
23-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
2426

2527
- uses: r-lib/actions/setup-pandoc@v2
2628

@@ -39,7 +41,7 @@ jobs:
3941

4042
- name: Deploy to GitHub pages 🚀
4143
if: github.event_name != 'pull_request'
42-
uses: JamesIves/github-pages-deploy-action@v4.4.1
44+
uses: JamesIves/github-pages-deploy-action@v4.5.0
4345
with:
4446
clean: false
4547
branch: gh-pages

.github/workflows/test-coverage.yaml

+21-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919

2020
- uses: r-lib/actions/setup-r@v2
2121
with:
@@ -27,5 +27,24 @@ jobs:
2727
needs: coverage
2828

2929
- name: Test coverage
30-
run: covr::codecov(quiet = FALSE)
30+
run: |
31+
covr::codecov(
32+
quiet = FALSE,
33+
clean = FALSE,
34+
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
35+
)
3136
shell: Rscript {0}
37+
38+
- name: Show testthat output
39+
if: always()
40+
run: |
41+
## --------------------------------------------------------------------
42+
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
43+
shell: bash
44+
45+
- name: Upload test results
46+
if: failure()
47+
uses: actions/upload-artifact@v4
48+
with:
49+
name: coverage-test-failures
50+
path: ${{ runner.temp }}/package

0 commit comments

Comments
 (0)