Skip to content

Update r-tests.yml

Update r-tests.yml #2

Workflow file for this run

on:
push:
branches: [main, master, r-tests]
pull_request:
branches: [main, master]
name: lint
permissions: read-all
jobs:
lint:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
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: Lint
run: lintr::lint_dir(path="PM1")
shell: Rscript {0}
env:
LINTR_ERROR_ON_LINT: true