Skip to content

Commit

Permalink
fix(ci): Update actions and add GITHUB_PAT for test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
esloch committed May 17, 2024
1 parent fc9ec6f commit ec3639b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-r@v2

Expand All @@ -28,11 +28,11 @@ jobs:
shell: Rscript {0}

- name: Cache R packages
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
key: ${{ runner.os }}-R-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-R-${{ hashFiles('.github/R-version') }}-1-

- name: Install dependencies
run: |
Expand All @@ -44,3 +44,5 @@ jobs:
- name: Test coverage
run: covr::codecov()
shell: Rscript {0}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ec3639b

Please sign in to comment.