Skip to content

Commit 4211906

Browse files
ci: update clojure quality check github workflow
- Update Clojure tool versions - Update to Java 21 - update clj-kondo config for CI output
1 parent b5421de commit 4211906

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@
4444
- ci: optional setup-python for publish book workflow
4545
- dev: optional setup-python for publish book workflow
4646
- os: move shell section under command-line
47+
- ci: update clojure quality check github workflow

docs/continuous-integration/github/workflows/practicalli.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -124,36 +124,38 @@ Defines `changelog-check-skip` label on a pull request instructs the workflow no
124124
- run: echo "🐙 ${{ github.repository }} repository was cloned to the runner."
125125

126126
- name: "Prepare Java runtime"
127-
uses: actions/setup-java@v3
127+
uses: actions/setup-java@v4
128128
with:
129129
distribution: "temurin"
130-
java-version: "17"
130+
java-version: "21"
131+
132+
- name: "Prepare Clojure tools"
133+
uses: DeLaGuardo/[email protected]
134+
with:
135+
cli: 1.12.1.1550 # Clojure CLI
136+
cljstyle: 0.17.642 # Cljstyle
137+
clj-kondo: 2025.06.05 # Clj-kondo
138+
# bb: 1.12.202 # Babashka
131139

132140
- name: "Cache Clojure Dependencies"
133-
uses: actions/cache@v3
141+
uses: actions/cache@v4
134142
with:
135143
path: |
136144
~/.m2/repository
137145
~/.gitlibs
138-
key: clojure-deps-${{ hashFiles('**/deps.edn') }}
146+
.cpcache
147+
key: clojure-deps-${{ hashFiles('deps.edn') }}
139148
restore-keys: clojure-deps-
140149

141-
- name: "Install Clojure tools"
142-
uses: DeLaGuardo/setup-clojure@10
143-
with:
144-
cli: 1.11.1.1165 # Clojure CLI
145-
cljstyle: 0.15.0 # cljstyle
146-
clj-kondo: 2022.10.05 # Clj-kondo
147-
# bb: 0.7.8 # Babashka
148-
149150
- name: "Lint with clj-kondo"
150-
run: clj-kondo --lint deps.edn src resources test --config .clj-kondo/config-ci.edn
151+
run: clj-kondo --lint deps.edn src resources test --config '{:output {:pattern "::{{level}} file={{filename}},line={{row}},col={{col}}::{{message}}"}}'
152+
151153

152154
- name: "Check Clojure Style"
153155
run: cljstyle check --report
154156

155157
- name: "Kaocha test runner"
156-
run: clojure -X:env/test:test/run
158+
run: clojure -X:test/env:test/run
157159
```
158160

159161
## mkdocs publisher

0 commit comments

Comments
 (0)