Skip to content

Commit

Permalink
update from
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMarvin committed Apr 2, 2021
1 parent 74fbe19 commit 9f0da25
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master

name: lint
Expand All @@ -16,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@master
- uses: r-lib/actions/setup-r@v1

- name: Query dependencies
run: |
Expand All @@ -25,8 +27,8 @@ jobs:
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}

- name: Cache R packages
uses: actions/cache@v1
- name: Restore R package cache
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
Expand All @@ -39,6 +41,9 @@ jobs:
remotes::install_cran("lintr")
shell: Rscript {0}

- name: Install package
run: R CMD INSTALL .

- name: Lint
run: lintr::lint_package()
shell: Rscript {0}

0 comments on commit 9f0da25

Please sign in to comment.