Skip to content

Commit

Permalink
Adding install lintr command in lintr workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rmbielby committed Jan 15, 2024
1 parent 19d1b71 commit 70bbf70
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/lintr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,13 @@ jobs:
r-version: 4.2.1
use-public-rspm: true

- name: resotre renv
- name: restore renv
uses: r-lib/actions/setup-renv@v2
with:
extra-packages: lintr

- name: Install lintr
shell: Rscript {0}
run: |
renv::install("lintr")
- name: Run lintr
run: lintr::sarif_output(lintr::lint_dir("."), "lintr-results.sarif")
Expand Down

0 comments on commit 70bbf70

Please sign in to comment.