Skip to content

revdepcheck

revdepcheck #6

Workflow file for this run

# https://github.com/dieghernan/tidyterra/blob/main/.github/workflows/revdepcheck.yaml
on:
workflow_dispatch:
name: revdepcheck
jobs:
revdepcheck:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- {os: ubuntu-latest, r: 'release'}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: false
- uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: revdep
extra-packages: |
local::.
any::usethis
any::BiocManager
any::BiocVersion
any::devtools
any::remotes
r-lib/revdepcheck
needs: check
- name: revdepcheck
run: |
revdepcheck::revdep_reset()
revdepcheck::revdep_check(num_workers = 4)
revdepig <- c(
"checks", "library", "checks.noindex", "library.noindex",
"data.sqlite", "*.html" )
usethis::use_git_ignore(revdepig, directory = file.path(".", "revdep"))
# Ignore this also on build
usethis::use_build_ignore("revdep")
shell: Rscript {0}
# Commit all changed files back to the repository
- uses: stefanzweifel/git-auto-commit-action@v5
with:
# Optional. Local and remote branch name where commit is going to be pushed
# to. Defaults to the current branch.
# You might need to set `create_branch: true` if the branch does not exist.
branch: revdep
# Optional. Create given branch name in local and remote repository.
create_branch: true
# Optional glob pattern of files which should be added to the commit
# Defaults to all (.)
# See the `pathspec`-documentation for git
# - https://git-scm.com/docs/git-add#Documentation/git-add.txt-ltpathspecgt82308203
# - https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec
file_pattern: 'revdep'
# Optional. Options used by `git-add`.
# See https://git-scm.com/docs/git-add#_options
add_options: '--all'