Skip to content

Commit

Permalink
Update r.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
spriyansh authored Dec 20, 2023
1 parent edbe294 commit ca90041
Showing 1 changed file with 29 additions and 20 deletions.
49 changes: 29 additions & 20 deletions .github/workflows/r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,41 @@ on:
pull_request:
branches: [ "main", "develop" ]

permissions:
contents: read

jobs:
build:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: true
fail-fast: false
matrix:
config:
- {os: macos-latest, r: 'release', r-version: '4.1.1'}
- {os: windows-latest, r: 'release', r-version: '4.1.1'}
- {os: ubuntu-latest, r: 'release', r-version: '4.1.1'}
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v3
- name: Set up R ${{ matrix.config.r-version }}
uses: r-lib/actions/setup-r@v2

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

- 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

- uses: r-lib/actions/check-r-package@v2
with:
r-version: ${{ matrix.config.r-version }}
- name: Install dependencies
run: |
install.packages(c("remotes"))
remotes::install_deps(dependencies = TRUE)
install.packages("rcmdcheck")
shell: Rscript {0}
- name: Check
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
shell: Rscript {0}
upload-snapshots: true

0 comments on commit ca90041

Please sign in to comment.