Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/insightsengineering/covtracer-action
Github Action based on the Covtracer R package
https://github.com/insightsengineering/covtracer-action
actions coverage covtracer r traceability
Last synced: 7 days ago
JSON representation
Github Action based on the Covtracer R package
- Host: GitHub
- URL: https://github.com/insightsengineering/covtracer-action
- Owner: insightsengineering
- License: apache-2.0
- Created: 2022-03-02T12:08:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T16:23:12.000Z (7 months ago)
- Last Synced: 2024-10-31T10:38:54.629Z (15 days ago)
- Topics: actions, coverage, covtracer, r, traceability
- Language: R
- Homepage: https://github.com/marketplace/actions/covtracer-action
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Covtracer Action
Github Action based on the Covtracer R package## Description
GitHub Action based on the [Covtracer](https://github.com/Genentech/covtracer) R package.Supported R version > 4.x
## Action Type
Composite## Quick Start
1. Create new action file `.github/workflows/covtracer-check.yaml` and put example content:
```yaml
---
name: CovtracerCheckon:
push:
branches:
- main
pull_request:
branches:
- mainjobs:
covtracer:
runs-on: ubuntu-latest
name: Covtracer
container:
image: rocker/verse:4.1.2
steps:
- name: Checkout repo
uses: actions/checkout@v3- name: Run rcmdcheck
run: |
R CMD build .
R CMD INSTALL --with-keep.source *.tar.gz
R CMD check *.tar.gz- name: Run CovtracerCheck
uses: insightsengineering/covtracer-action@v1
env:
GITHUB_PAT: ${{ secrets.MY_PUBLIC_GITHUB_TOKEN }}```
2. Create PR to test CovtracerCheck action.
## Environment variables
It is preferred to add secret like `MY_PUBLIC_GITHUB_TOKEN`
for repository or organization [(Managing encrypted secrets)](https://docs.github.com/en/codespaces/managing-your-codespaces/managing-encrypted-secrets-for-your-codespaces)
to avoid GitHub download limit being set to `unauthenticated account`.* `GITHUB_PAT`:
_Description_: Github user [Personal Access Token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)
- token required to read public repositories_Required_: `false`
## Inputs
* `path`:
_Description_: Path to package's root
_Required_: `false`
_Default_: `.`
* `allow-failure`:
_Description_: CovtracerCheck errors will give a warning instead of causing a pipeline failure.
_Required_: `false`
_Default_: `false`
* `ignored-file-types`:
_Description_: CovtracerCheck can ignore non-code file types.
_Required_: `false`
_Default_: `data,class`
* `minimal-coverage`:
_Description_: Minimal coverage threshold.
_Required_: `false`
_Default_: `80`
* `post-result-as-comment`:
_Description_: Post the check result as a PR comment.
_Required_: `false`
_Default_: `false`
* `no-cache`:
_Description_: Disable GitHub Action R dependency caching.
_Required_: `false`
_Default_: `false`