New CI flow: Check package against specific CRAN snapshot(s). #91
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the primary workflow for checking the state of the package | |
# It will run unittest (incl.) codecov and R CMD checks - furthermore it will check for problematic dependencies and key leakage. | |
on: | |
push: | |
branches: [main, stage, dev] | |
pull_request: | |
branches: [main, stage, dev] | |
workflow_dispatch: | |
workflow_call: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
name: Check Package π¦ | |
jobs: | |
# Runs dependency scan powered by oysteR - checks for known security vulnerabilities | |
audit: | |
name: Audit Dependencies π΅οΈββοΈ | |
uses: insightsengineering/r.pkg.template/.github/workflows/audit.yaml@main | |
# Generates a license report of package dependencies | |
licenses: | |
name: License Check π | |
uses: insightsengineering/r.pkg.template/.github/workflows/licenses.yaml@main | |
# # Runs R CMD check using the local R-CMD-check.yaml workflow | |
# check: | |
# name: RMD check π¦ | |
# uses: ./.github/workflows/R-CMD-check.yaml | |
# Runs R CMD check with specific version(s) of R and cran-snapshot | |
check-versions: | |
name: RMD check versions π | |
uses: ./.github/workflows/R-CMD-check-versions.yaml | |
# Runs unittests while capturing code:cov and uploads to Codecov io. See local subflow | |
test: | |
name: Test π§ͺ | |
uses: ./.github/workflows/Test.yaml | |
# Checks for git keys etc. | |
gitleaks: | |
name: gitleaks π§ | |
uses: insightsengineering/r.pkg.template/.github/workflows/gitleaks.yaml@main | |
with: | |
check-for-pii: false #Currently fails on R packages (not that the test check fails, but that the test fails to run.) | |