Check 🛠 #2339
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
--- | |
name: Check 🛠 | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
# Rerun workflows once pkgdown has finished running, to add coverage | |
# and unit test report to gh-pages branch. | |
workflow_run: | |
workflows: ["Docs 📚"] | |
types: | |
- completed | |
jobs: | |
audit: | |
name: Audit Dependencies 🕵️♂️ | |
uses: insightsengineering/r.pkg.template/.github/workflows/audit.yaml@main | |
r-cmd: | |
name: R CMD Check 🧬 | |
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main | |
secrets: | |
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} | |
with: | |
additional-env-vars: | | |
_R_CHECK_CRAN_INCOMING_REMOTE_=false | |
additional-r-cmd-check-params: --as-cran | |
enforce-note-blocklist: true | |
note-blocklist: | | |
checking dependencies in R code .* NOTE | |
checking R code for possible problems .* NOTE | |
checking examples .* NOTE | |
checking Rd line widths .* NOTE | |
unit-test-report-brand: >- | |
https://raw.githubusercontent.com/insightsengineering/hex-stickers/main/thumbs/tern.png | |
coverage: | |
name: Coverage 📔 | |
uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main | |
secrets: | |
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} | |
linter: | |
if: github.event_name != 'push' | |
name: SuperLinter 🦸♀️ | |
uses: insightsengineering/r.pkg.template/.github/workflows/linter.yaml@main | |
roxygen: | |
name: Roxygen 🅾 | |
uses: insightsengineering/r.pkg.template/.github/workflows/roxygen.yaml@main | |
secrets: | |
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} | |
with: | |
auto-update: true | |
gitleaks: | |
name: gitleaks 💧 | |
uses: insightsengineering/r.pkg.template/.github/workflows/gitleaks.yaml@main | |
spelling: | |
if: github.event_name != 'push' | |
name: Spell Check 🆎 | |
uses: insightsengineering/r.pkg.template/.github/workflows/spelling.yaml@main | |
links: | |
if: github.event_name != 'push' | |
name: Check URLs 🌐 | |
uses: insightsengineering/r.pkg.template/.github/workflows/links.yaml@main | |
vbump: | |
name: Version Bump 🤜🤛 | |
if: github.event_name == 'push' | |
uses: insightsengineering/r.pkg.template/.github/workflows/version-bump.yaml@main | |
secrets: | |
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} | |
version: | |
name: Version Check 🏁 | |
uses: insightsengineering/r.pkg.template/.github/workflows/version.yaml@main | |
licenses: | |
name: License Check 🃏 | |
uses: insightsengineering/r.pkg.template/.github/workflows/licenses.yaml@main | |
style: | |
if: github.event_name != 'push' | |
name: Style Check 👗 | |
uses: insightsengineering/r.pkg.template/.github/workflows/style.yaml@main | |
with: | |
auto-update: true | |
grammar: | |
if: github.event_name != 'push' | |
name: Grammar Check 🔤 | |
uses: insightsengineering/r.pkg.template/.github/workflows/grammar.yaml@main |