Skip to content

Commit

Permalink
GHA: modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikBengtsson committed Nov 6, 2024
1 parent 3427663 commit 9fd3aa3
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,15 @@ jobs:
config:
- {os: windows-latest, r: 'devel' }
- {os: windows-latest, r: 'release' }
- {os: windows-latest, r: 'oldrel' }
- {os: macOS-14, r: 'devel' }
- {os: macOS-latest, r: 'release' }
- {os: macOS-latest, r: 'oldrel' }
# - {os: macOS-latest, r: 'devel' }
# - {os: macOS-latest, r: 'release' }
# - {os: macOS-latest, r: 'oldrel' }
- {os: ubuntu-latest, r: 'devel' }
- {os: ubuntu-latest, r: 'release' }
- {os: ubuntu-latest, r: 'oldrel' }
- {os: ubuntu-latest, r: 'oldrel-1' }
- {os: ubuntu-latest, r: 'oldrel-2' }
- {os: ubuntu-latest, r: '3.5' }
- {os: ubuntu-latest, r: '3.6' }
- {os: ubuntu-latest, r: 'release' , language: ko, label: ko }
- {os: ubuntu-latest, r: 'release' , language: zh_CN, label: zh_CN }
- {os: ubuntu-latest, r: 'release' , language: zh_TW, label: zh_TW }
Expand All @@ -39,31 +38,37 @@ jobs:
LANGUAGE: ${{ matrix.config.language }}
## R CMD check
_R_CHECK_CRAN_INCOMING_: false
_R_CHECK_LENGTH_1_CONDITION_: true
_R_CHECK_LENGTH_1_LOGIC2_: true
_R_CHECK_MATRIX_DATA_: true
_R_CHECK_SUGGESTS_ONLY_: true
_R_CHECK_S3_METHODS_SHOW_POSSIBLE_ISSUES_: true
_R_CHECK_THINGS_IN_TEMP_DIR_: true
## R (>= 4.4.0) Note, no trailing underscore (sic!)
_R_COMPARE_LANG_OBJECTS: eqonly

steps:
- uses: actions/checkout@v4

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

- uses: r-lib/actions/setup-tinytex@v2

- name: Install system dependencies (Linux)
if: runner.os == 'Linux'
run: sudo apt-get install -y tidy

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- name: Install package itself (special case)
- name: Install itself (to build vignettes)
run: |
install.packages(".", repos = NULL, type = "source") ## self vignette engine
install.packages(".", repos=NULL, type="source")
shell: Rscript {0}

- name: Session info
Expand All @@ -82,7 +87,7 @@ jobs:
- name: Check
run: |
rcmdcheck::rcmdcheck(
args = c("--no-manual", "--as-cran"),
args = c("--as-cran", if (.Platform$OS.type == "windows") "--no-manual"),
error_on = "note",
check_dir = "check"
)
Expand Down

0 comments on commit 9fd3aa3

Please sign in to comment.