A simple GitHub action which runs lein eastwood and posts the results using reviewdog.
Optional.
${{ github.token }}
is used by default.
Optional.
Report level for reviewdog- must be one of [info, warning, error]
.
It's same as -level
flag of reviewdog.
Reporter of reviewdog command.
Must be one of [github-pr-check, github-pr-review, github-check]
.
Default is github-pr-check.
github-pr-review can use Markdown and add a link to rule page in reviewdog reports.
Optional.
Filtering mode for the reviewdog command.
Must be one of [added, diff_context, file, nofilter]
.
Default is added.
Optional.
Sets and exceptional exit code for reviewdog when errors are found.
Must be one of [true, false]
.
Default is false
.
Optional. Additional reviewdog flags.
Optional.
Additional Flags for eastwood.
Default: ''
To receive automatic Pull Request comments with eastwood results which fails on error:
name: Eastwood
on: [pull_request]
jobs:
clj-eastwood:
name: runner / clj-eastwood
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: clj-eastwood
uses: tonyblatt/clojure-eastwood-action@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
fail_on_error: true
Special Thanks to Nick Nichols whose code was heavily leveraged to create this linter.
Copyright © 2023 Tony Blatt
Distributed under the MIT License