Skip to content

Latest commit

 

History

History
63 lines (45 loc) · 2.11 KB

workflows.md

File metadata and controls

63 lines (45 loc) · 2.11 KB

What do these workflows do?

Runs devtools::check() and devtools::test() on the R package inside the checked out repository.

Runs tests on the installed package, generates the qc documentation and uploads it as an artifact for later consumption.

Runs lintr on the repo with the linting settings specified in the container image, except when overriden by a repository-specific .lintr.R configuration file.

Generates man/*.Rd documentation through roxygen. Renders a pkgdown website and uploads it to Github Pages.

Checks that version numbers in NEWS.md and DESCRIPTION match. Checks that version numbers don't have a fourth component (major.minor.patch.dev) on PRs targeting main.

Builds a reusable workflow to be called from other repositories.

Example configuration for main branch:

---
name: Checks 🧩

on:
  pull_request:
    types:
      - opened
      - synchronize
      - reopened
      - ready_for_review
    branches:
      - main
  push:
    branches:
      - main
  workflow_dispatch:

jobs:
  check-test:
    name: Check 📦
    uses: boehringer-ingelheim/dv.templates/.github/workflows/check.yml@main

  lintr:
    name: Lintr 🔍
    uses: boehringer-ingelheim/dv.templates/.github/workflows/lintr.yml@main
    with:
      lintr_error_on_lint: true

  pkgdown:
    name: Pkgdown 📖
    uses: boehringer-ingelheim/dv.templates/.github/workflows/pkgdown.yml@main