Skip to content

Commit c21f075

Browse files
committed
Fix CI smoke tests
1 parent 8f142b4 commit c21f075

File tree

2 files changed

+22
-15
lines changed

2 files changed

+22
-15
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,28 @@ jobs:
1616
- name: Install clojure tools
1717
uses: DeLaGuardo/[email protected]
1818
with:
19+
cli: latest
1920
lein: 2.9.10
2021
bb: latest
2122
clj-kondo: 2023.05.18
23+
cljfmt: 0.10.4
24+
25+
- name: Execute tests
26+
working-directory: ./cljfmt
27+
run: lein test
28+
29+
- name: Execute babashka tests
30+
run: bb test
31+
32+
- name: Check formatting
33+
run: bb fmt
34+
35+
- name: Lint sourcecode
36+
run: bb lint
37+
38+
- name: Install cljfmt dependency
39+
working-directory: ./cljfmt
40+
run: lein install
2241

2342
- name: Install GraalVM
2443
uses: graalvm/setup-graalvm@v1
@@ -38,19 +57,6 @@ jobs:
3857
working-directory: ./cljfmt
3958
run: lein native-image
4059

41-
- name: Execute tests
42-
working-directory: ./cljfmt
43-
run: lein test
44-
45-
- name: Execute babashka tests
46-
run: bb test
47-
48-
- name: Check formatting
49-
run: cljfmt/target/cljfmt check
50-
51-
- name: Lint sourcecode
52-
run: bb lint
53-
5460
- name: Run smoke tests
5561
run: bb smoke
5662

scripts/smoke_test.bb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
"lein cljfmt check")))))
88

99
(deftest check-clj-tool
10-
(is (zero? (:exit (p/shell
11-
"clj -M -m cljfmt.main check cljfmt/src cljfmt/test")))))
10+
(is (zero? (:exit
11+
(p/shell
12+
"clojure -M -m cljfmt.main check cljfmt/src cljfmt/test")))))
1213

1314
(deftest check-standalone
1415
(is (zero? (:exit (p/shell

0 commit comments

Comments
 (0)