Skip to content

Commit a3f546f

Browse files
Add GitHub Actions workflow for Clojure CI (#30)
* Add GitHub Actions workflow for Clojure CI - Test with Java 11, 17, and 24 - Use setup-java and setup-clojure actions - Cache Maven dependencies for faster builds
1 parent 6afe46d commit a3f546f

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/clojure.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Clojure CI
2+
3+
on:
4+
push:
5+
branches: [ master, main ]
6+
pull_request:
7+
branches: [ master, main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
java: [11, 17, 24]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Java ${{ matrix.java }}
21+
uses: actions/setup-java@v4
22+
with:
23+
distribution: 'temurin'
24+
java-version: ${{ matrix.java }}
25+
26+
- name: Setup Clojure
27+
uses: DeLaGuardo/[email protected]
28+
with:
29+
lein: latest
30+
31+
- name: Cache dependencies
32+
uses: actions/cache@v4
33+
with:
34+
path: ~/.m2
35+
key: ${{ runner.os }}-m2-${{ hashFiles('**/project.clj') }}
36+
restore-keys: |
37+
${{ runner.os }}-m2-
38+
39+
- name: Run tests
40+
run: lein test

0 commit comments

Comments
 (0)