-
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (32 loc) · 1.15 KB
/
lint-review.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
# Clojure Lint with clj-kondo and reviewdog
#
# Lint errors raised as comments on pull request conversation
name: Lint Review
on: [pull_request]
jobs:
clj-kondo:
name: runner / clj-kondo
runs-on: ubuntu-latest
steps:
- run: echo "🚀 Job automatically triggered by ${{ github.event_name }}"
- run: echo "🐧 Job running on ${{ runner.os }} server"
- run: echo "🐙 Using ${{ github.ref }} branch from ${{ github.repository }} repository"
# Git Checkout
- name: Checkout Code
uses: actions/checkout@v4
with:
token: "${{ secrets.PAT || secrets.GITHUB_TOKEN }}"
- run: echo "🐙 ${{ github.repository }} repository was cloned to the runner."
- name: clj-kondo
uses: nnichols/clojure-lint-action@v2
with:
pattern: "*.clj"
clj_kondo_config: ".clj-kondo/config-ci.edn"
level: "error"
exclude: ".cljstyle"
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
# Summary and status
- run: echo "🎨 Lint Review checks completed"
- run: echo "🍏 Job status is ${{ job.status }}."