Skip to content

Update r-tests.yml

Update r-tests.yml #3

Workflow file for this run

name: Lint R Scripts and Notebooks
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
folder: [PM1, PM2]
name: Lint ${{ matrix.folder }} folder
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up R
uses: r-lib/actions/setup-r@v2
- name: Install lintr
run: R -e 'install.packages("lintr")'
- name: Lint R scripts and notebooks in ${{ matrix.folder }}
run: |
R -e 'lintr::lint_dir("${{ matrix.folder }}", linters = lintr::with_defaults())'
continue-on-error: true