-
-
Notifications
You must be signed in to change notification settings - Fork 501
35 lines (29 loc) · 1.07 KB
/
quality-checks.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
---
name: "Quality Checks"
on:
pull_request:
push:
branches:
- main
jobs:
check-code-quality:
name: "Check Code Quality"
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"
- name: "Checkout code"
uses: actions/checkout@v4
- run: echo "🐙 ${{ github.repository }} repository was cloned to the runner."
- name: "Install tools"
uses: DeLaGuardo/setup-clojure@12.1
with:
cljstyle: 0.15.0
clj-kondo: 2023.03.17
- name: "Lint Clojure"
run: clj-kondo --lint deps.edn --config '{:output {:pattern "::{{level}} file={{filename}},line={{row}},col={{col}}::{{message}}"}}'
- name: "Check Clojure Style"
run: cljstyle check --report
- run: echo "🎨 style and format of Clojure code checked"
- run: echo "🍏 Job status is ${{ job.status }}."