Skip to content

Commit

Permalink
Build: update standard R CMD check workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaiconstantin committed Jan 3, 2023
1 parent c580f28 commit 8176e91
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}
Expand All @@ -35,40 +35,29 @@ jobs:
steps:
# Checkout the repository.
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

# Setup `pandoc`.
- name: Setup pandoc
uses: r-lib/actions/setup-pandoc@v1
uses: r-lib/actions/setup-pandoc@v2

# Setup `R`.
- name: Setup R
uses: r-lib/actions/setup-r@v1
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

# Setup `powerly` dependencies and extras.
- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v1
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: rcmdcheck
extra-packages: any::rcmdcheck
needs: check

# Perform the CRAN check.
- name: Check package
uses: r-lib/actions/check-r-package@v1

# Show `testthat` output.
- name: Show testthat output
if: always()
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash

# Upload job results on failure.
- name: Upload check results
if: failure()
uses: actions/upload-artifact@main
uses: r-lib/actions/check-r-package@v2
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: check
upload-snapshots: true

0 comments on commit 8176e91

Please sign in to comment.