Skip to content

Commit

Permalink
also lint
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Nov 9, 2021
1 parent 0eb7391 commit 25b2db1
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: lint

jobs:
lint:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2

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

- uses: r-lib/actions/setup-r-dependencies@master
with:
extra-packages: lintr

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

0 comments on commit 25b2db1

Please sign in to comment.