Skip to content

Lint R Package

Lint R Package #70

Workflow file for this run

name: Lint R Package
on:
workflow_run:
workflows: [ "Make Project" ]
types:
- completed
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.PAT }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::lintr, local::.
needs: lint
- name: .lintr
run: |
FILE=.setup/lint/.lintr
if [ -f "$FILE" ]; then
cp "$FILE" .
fi
- name: Lint
run: lintr::lint_package()
shell: Rscript {0}
env:
LINTR_ERROR_ON_LINT: true