Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
REVDEPCHECK - run revdep checks
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Jan 7, 2021
1 parent 42ccaca commit b9ef913
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/revdep-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on: push

name: revdep

jobs:
revdep:
runs-on: ${{ matrix.config.os }}
if: startsWith(github.event.head_commit.message, 'REVDEPCHECK')
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- { os: macOS-latest, r: 'latest'}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
CRAN: ${{ matrix.config.cran }}

steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v1
with:
r-version: ${{ matrix.config.r }}

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

- name: Cache R packages
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('DESCRIPTION') }}

- name: Install dependencies
run: Rscript -e "install.packages('pak', repos = 'https://r-lib.github.io/p/pak/dev/')" -e "pak::local_install_deps()" -e "pak::pkg_install('r-lib/revdepcheck')"

- name: Revdepcheck
run: Rscript -e "revdepcheck::revdep_reset()" -e "revdepcheck::revdep_check(num_workers=4)"

- name: Upload revdepcheck results
uses: actions/upload-artifact@v2
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: revdep/*.md

0 comments on commit b9ef913

Please sign in to comment.