Skip to content

Commit

Permalink
Merge branch 'main' into more-contributing-details
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisorwa authored Nov 7, 2024
2 parents 63d0019 + abb4ffd commit 4ef6d9a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/lint-changed-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,25 @@ jobs:
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
- uses: r-lib/actions/setup-r-dependencies@HEAD
with:
packages: |
extra-packages: |
any::gh
any::lintr
any::purrr
needs: lint

- name: Add lintr options
run: |
cat('\noptions(lintr.linter_file = ".lintr")\n', file = "~/.Rprofile", append = TRUE)
shell: Rscript {0}

- name: Install package
run: R CMD INSTALL .

- name: Extract and lint files changed by this PR
run: |
files <- gh::gh("GET https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files")
Expand Down

0 comments on commit 4ef6d9a

Please sign in to comment.