Skip to content

Commit

Permalink
Set revdepcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Mar 21, 2024
1 parent 9fd3cdd commit 85fdfe9
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/revdepcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ jobs:
fail-fast: false
matrix:
config:
#- {os: windows-latest, r: 'release'}
- {os: macOS-latest, r: 'release'}
- {os: ubuntu-latest, r: 'release'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -29,8 +28,14 @@ jobs:

- 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

Expand All @@ -40,6 +45,16 @@ jobs:
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}

- name: Commit results
Expand All @@ -49,4 +64,3 @@ jobs:
git add -A
git commit -m 'revdepcheck' || echo "No changes to commit"
git push origin || echo "No changes to commit"

0 comments on commit 85fdfe9

Please sign in to comment.