Skip to content

Commit

Permalink
add Cache R packages to covr yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapereirabr committed Oct 22, 2024
1 parent 99fc333 commit 9a6495e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ jobs:
with:
use-public-rspm: true

- name: Cache R packages
uses: actions/cache@v3
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-r-${{ steps.r-version.outputs.r-version }}-${{ hashFiles('**/*.lock') }}
restore-keys: |
${{ runner.os }}-r-${{ steps.r-version.outputs.r-version }}-
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr
Expand Down

0 comments on commit 9a6495e

Please sign in to comment.