Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for CODECOV_TOKEN #132

Merged
merged 2 commits into from
Aug 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ inputs:
(e.g. {{ secrets.PAT_GITHUB }}) which allows access to private
repositories. Read here for more details:
https://docs.github.com/en/actions/security-guides/automatic-token-authentication.
CODECOV_TOKEN:
description: >
Codecov repository token needed to upload coverage reports.
Providing this token helps prevent report upload failures by bypassing
Codecov's GitHub API rate limits. Read here for more details:
https://docs.codecov.com/docs/adding-the-codecov-token
cache_version:
description: >
Which cache version to use.
Expand Down Expand Up @@ -441,9 +447,13 @@ runs:

- name: 📋 Test coverage
if: inputs.run_covr == 'true' && runner.os == 'Linux'
env:
CODECOV_TOKEN: ${{ inputs.CODECOV_TOKEN }}
run: |
## NOTE: codecov() uses CODECOV_TOKEN env var if specified.
## (recommended)
covr::codecov()
shell: Rscript {0}
shell: Rscript {0}

- name: 🛠 Install package ️
if: inputs.run_pkgdown == 'true' && runner.os == 'Linux'
Expand Down
Loading