Skip to content

Instantly share code, notes, and snippets.

@jordemort
Created January 14, 2021 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordemort/025db6f58f4a4b1be7f16a676da910be to your computer and use it in GitHub Desktop.
Save jordemort/025db6f58f4a4b1be7f16a676da910be to your computer and use it in GitHub Desktop.
on:
pull_request:
name: Lint
jobs:
lint:
name: Lint
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: false
- name: shellcheck
if: always()
uses: reviewdog/action-shellcheck@v1
with:
github_token: ${{ secrets.BOT_GH_TOKEN }}
reporter: github-pr-review
exclude: "./.git/*"
fail_on_error: true
- name: rubocop
if: always()
uses: reviewdog/action-rubocop@v1
with:
rubocop_version: "1.8.0"
rubocop_extensions: rubocop-performance:1.9.2
github_token: ${{ secrets.BOT_GH_TOKEN }}
reporter: github-pr-review
fail_on_error: true
- name: markdownlint
uses: reviewdog/action-markdownlint@v0.1
with:
github_token: ${{ secrets.BOT_GH_TOKEN }}
reporter: github-pr-review
fail_on_error: true
- name: misspell
if: always()
uses: reviewdog/action-misspell@v1
with:
reporter: github-pr-review
github_token: ${{ secrets.github_token }}
locale: "US"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment