Skip to content

Commit d0c88de

Browse files
committed
(maint) Add Github Action to run lein test
1 parent b9ec87f commit d0c88de

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/lein-test.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: lein_test
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
paths: '*' #['src/**','test/**']
9+
pull_request:
10+
types: [opened, reopened, edited, synchronize]
11+
paths: '*' #['src/**','test/**']
12+
13+
jobs:
14+
run-lein-tests:
15+
name: lein test - Java ${{ matrix.java }}
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
java: [ '8', '11', '17' ]
20+
steps:
21+
- name: Check out repository code
22+
uses: actions/checkout@v3
23+
- name: Setup java
24+
uses: actions/setup-java@v3
25+
with:
26+
distribution: temurin
27+
java-version: ${{ matrix.java }}
28+
- name: Install Clojure tools
29+
uses: DeLaGuardo/setup-clojure@10.2
30+
with:
31+
cli: latest # Clojure CLI based on tools.deps
32+
lein: latest # Leiningen
33+
boot: latest # Boot.clj
34+
bb: latest # Babashka
35+
clj-kondo: latest # Clj-kondo
36+
cljstyle: latest # cljstyle
37+
zprint: latest # zprint
38+
- name: Run lein tests
39+
run: lein test

0 commit comments

Comments
 (0)