Skip to content

tonyblatt/clojure-eastwood-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clojure-lein-eastwood-action

A simple GitHub action which runs lein eastwood and posts the results using reviewdog.

Inputs

github_token

Optional. ${{ github.token }} is used by default.

level

Optional. Report level for reviewdog- must be one of [info, warning, error]. It's same as -level flag of reviewdog.

reporter

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.

filter_mode

Optional. Filtering mode for the reviewdog command. Must be one of [added, diff_context, file, nofilter]. Default is added.

fail_on_error

Optional. Sets and exceptional exit code for reviewdog when errors are found. Must be one of [true, false]. Default is false.

reviewdog_flags

Optional. Additional reviewdog flags.

eastwood_flags

Optional. Additional Flags for eastwood. Default: ''

Example usage

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

Special Thanks to Nick Nichols whose code was heavily leveraged to create this linter.

Licensing

Copyright © 2023 Tony Blatt

Distributed under the MIT License

About

Runs lein eastwood and posts the results using reviewdog.

Resources

License

Stars

Watchers

Forks

Packages

No packages published