Merge pull request #292 from chrovis/dependabot/github_actions/action… #684
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: lint | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name : master base sha | |
id : master_base_sha | |
if : github.ref == 'refs/heads/master' | |
run: echo "base_sha=${{ github.event.before }}" >> $GITHUB_OUTPUT | |
- uses: xcoo/clj-lint-action@v1.1.12 | |
with: | |
linters: "[\"clj-kondo\" \"kibit\" \"eastwood\"]" | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
runner: ":leiningen" | |
base_sha: ${{ github.event.pull_request.base.sha||steps.master_base_sha.outputs.base_sha }} | |
eastwood_linters: "[:all]" | |
linter_options: "{:eastwood {:exclude-linters [:keyword-typos :unused-namespaces :boxed-math :reflection]}}" |