Skip to content

Commit 4168467

Browse files
update actions
1 parent 13dab3b commit 4168467

File tree

3 files changed

+61
-119
lines changed

3 files changed

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

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)