Skip to content

Commit d0ce30a

Browse files
update CI
1 parent d3f4bb5 commit d0ce30a

2 files changed

Lines changed: 14 additions & 41 deletions

File tree

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

Lines changed: 12 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,27 @@
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+
name: R-CMD-check
2+
33
on:
44
push:
5-
branches: [main, master, v2-branch]
5+
branches: [ main, master ]
66
pull_request:
7-
8-
name: R-CMD-check.yaml
9-
10-
permissions: read-all
7+
branches: [ main, master ]
118

129
jobs:
13-
R-CMD-check:
14-
runs-on: ${{ matrix.config.os }}
15-
16-
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
17-
18-
strategy:
19-
fail-fast: false
20-
matrix:
21-
config:
22-
- {os: macos-latest, r: 'release'}
23-
- {os: windows-latest, r: 'release'}
24-
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
25-
- {os: ubuntu-latest, r: 'release'}
26-
- {os: ubuntu-latest, r: 'oldrel-1'}
27-
10+
check:
11+
runs-on: ubuntu-latest
2812
env:
2913
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
3014
R_KEEP_PKG_SOURCE: yes
3115

3216
steps:
33-
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
17+
- uses: actions/checkout@v4
3418

35-
- uses: ./setup-pandoc
36-
37-
- uses: ./setup-r
19+
- uses: r-lib/actions/setup-r@v2
3820
with:
39-
r-version: ${{ matrix.config.r }}
40-
http-user-agent: ${{ matrix.config.http-user-agent }}
41-
use-public-rspm: true
21+
r-version: '4.5.1' # Specify your desired R version
4222

43-
- uses: ./setup-r-dependencies
44-
with:
45-
extra-packages: any::rcmdcheck
46-
needs: check
23+
- uses: r-lib/actions/setup-renv@v2 # Installs packages from renv.lock
4724

48-
- uses: ./check-r-package
25+
- uses: r-lib/actions/check-r-package@v2
4926
with:
50-
upload-snapshots: true
51-
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
27+
args: '--no-manual --as-cran' # Example arguments for R CMD check

.github/workflows/pkgdown.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,9 @@ jobs:
2828
- uses: r-lib/actions/setup-r@v2
2929
with:
3030
use-public-rspm: true
31+
32+
- uses: r-lib/actions/setup-renv@v2
3133

32-
- name: Install renv
33-
run: Rscript -e 'install.packages("renv")'
34-
35-
- name: Restore project environment from renv.lock
36-
run: Rscript -e 'renv::restore()'
3734

3835
- name: Build site
3936
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)

0 commit comments

Comments
 (0)