Skip to content

Commit

Permalink
Make cache dependent on ACT
Browse files Browse the repository at this point in the history
  • Loading branch information
Noam Ross committed Nov 14, 2023
1 parent ebd378b commit b2c7e7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v3
- name: Do a pre-emptive apt-update
run: sudo apt-get update -qq
if: ${{ !env.ACT }}
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
Expand All @@ -29,6 +32,7 @@ jobs:
with:
extra-packages: any::sessioninfo, any::rcmdcheck, any::pkgdepends, any::covr
needs: check
cache: ${{ !env.ACT }}
- name: Run just package tests and record test coverage
run: |
cat("LOGNAME=", Sys.info()[["user"]], "\n", sep = "", file = Sys.getenv("GITHUB_ENV"), append = TRUE)
Expand Down Expand Up @@ -86,6 +90,9 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Do a pre-emptive apt-update
run: sudo apt-get update -qq
if: ${{ !env.ACT }}
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
Expand All @@ -97,6 +104,7 @@ jobs:
with:
extra-packages: any::sessioninfo, any::rcmdcheck, any::pkgdepends
needs: check
cache: ${{ !env.ACT }}

- uses: r-lib/actions/check-r-package@v2
with:
Expand Down

0 comments on commit b2c7e7b

Please sign in to comment.