Skip to content

Commit c29ed37

Browse files
Merge pull request #905 from lorenzwalthert/r-cmd-check-ghactions-v2
R cmd check ghactions v2
2 parents 809c6ab + 3ca02a6 commit c29ed37

File tree

5 files changed

+72
-124
lines changed

5 files changed

+72
-124
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 0 additions & 119 deletions
This file was deleted.

.github/workflows/check-full.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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
3+
4+
on:
5+
push:
6+
branches: [main, master]
7+
pull_request:
8+
branches: [main, master]
9+
10+
11+
name: R-CMD-check
12+
13+
jobs:
14+
R-CMD-check:
15+
runs-on: ${{ matrix.config.os }}
16+
17+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
config:
23+
- {os: macOS-latest, r: 'release'}
24+
25+
- {os: windows-latest, r: 'release'}
26+
# Use 3.6 to trigger usage of RTools35
27+
- {os: windows-latest, r: '3.6'}
28+
29+
# Use older ubuntu to maximise backward compatibility
30+
- {os: ubuntu-18.04, r: 'devel', http-user-agent: 'release'}
31+
- {os: ubuntu-18.04, r: 'release'}
32+
- {os: ubuntu-18.04, r: 'oldrel-1'}
33+
- {os: ubuntu-18.04, r: 'oldrel-2'}
34+
- {os: ubuntu-18.04, r: 'oldrel-3'}
35+
- {os: ubuntu-18.04, r: 'oldrel-4'}
36+
37+
env:
38+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
39+
R_KEEP_PKG_SOURCE: yes
40+
41+
steps:
42+
- uses: actions/checkout@v2
43+
44+
- uses: r-lib/actions/setup-pandoc@v2
45+
46+
- uses: r-lib/actions/setup-r@v2
47+
with:
48+
r-version: ${{ matrix.config.r }}
49+
http-user-agent: ${{ matrix.config.http-user-agent }}
50+
use-public-rspm: true
51+
52+
- uses: r-lib/actions/setup-r-dependencies@v2
53+
with:
54+
extra-packages: any::rcmdcheck, data.tree=?ignore-before-r=3.5.0
55+
needs: check
56+
57+
- uses: r-lib/actions/check-r-package@v2
58+
env:
59+
_R_CHECK_FORCE_SUGGESTS_: false
60+
61+
concurrency:
62+
group: ${{ github.workflow }}-${{ github.head_ref }}
63+
cancel-in-progress: true

.github/workflows/pkgdown.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,7 @@ jobs:
4444
git config --local user.email "[email protected]"
4545
git config --local user.name "GitHub Actions"
4646
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
47+
48+
concurrency:
49+
group: ${{ github.workflow }}-${{ github.head_ref }}
50+
cancel-in-progress: true

.github/workflows/test-coverage.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ on:
88

99
name: test-coverage
1010

11-
concurrency:
12-
group: ${{ github.workflow }}-${{ github.head_ref }}
13-
cancel-in-progress: true
14-
15-
1611
jobs:
1712
test-coverage:
1813
runs-on: macOS-latest
@@ -49,3 +44,7 @@ jobs:
4944
- name: Test coverage
5045
run: covr::codecov()
5146
shell: Rscript {0}
47+
48+
concurrency:
49+
group: ${{ github.workflow }}-${{ github.head_ref }}
50+
cancel-in-progress: true

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
* use pre-commit via GitHub Actions (#872).
5858
* terminate running jobs on new push to save resources (#888).
5959
* Use the {touchstone} GitHub Action instead of the literal script (#889).
60+
* upgrade R CMD check Github Actions to use `v2`.
6061

6162
# styler 1.6.2
6263

0 commit comments

Comments
 (0)