Skip to content

New CI flow: Check package against specific CRAN snapshot(s). #88

New CI flow: Check package against specific CRAN snapshot(s).

New CI flow: Check package against specific CRAN snapshot(s). #88

Workflow file for this run

# 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.)