Skip to content

Commit 6e8bbf4

Browse files
committed
Build across 4 JDKs and 2 Clojure versions
1 parent 24906fa commit 6e8bbf4

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

.github/workflows/config.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@ on:
88
- master
99
jobs:
1010
build:
11+
strategy:
12+
matrix:
13+
java-version: ["11", "17", "21", "24"]
14+
clojure-version: ["11" "12"]
1115
runs-on: ubuntu-latest
1216
steps:
1317
- name: Checkout
1418
uses: actions/checkout@v5
1519
- name: Setup Java
1620
uses: actions/setup-java@v5
1721
with:
18-
java-version: '11'
22+
java-version: ${{ matrix.java-version }}
1923
distribution: 'corretto'
2024
- name: Setup Clojure
2125
uses: DeLaGuardo/setup-clojure@13.4
@@ -33,4 +37,4 @@ jobs:
3337
key: cljdeps-${{ hashFiles('deps.edn') }}
3438

3539
- name: Execute tests
36-
run: clojure -X:dev:test
40+
run: clojure -X:dev:test:clojure-${{ matrix.clojure-version }}

deps.edn

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
"-Dapple.awt.UIElement=true"]
2929
:extra-paths ["test" "dev-resources"]}
3030

31+
:clojure-11 {}
32+
33+
:clojure-12 {:override-deps {org.clojure/clojure {:mvn/version "1.12.3"}}}
34+
3135
;; clj -Mdev:perf
3236
:perf
3337
{:main-opts ["--main" "perf"]}
@@ -36,22 +40,22 @@
3640
:test
3741
{:extra-deps {io.github.cognitect-labs/test-runner {:git/tag "v0.5.1"
3842
:git/sha "dfb30dd"}}
39-
:exec-fn cognitect.test-runner.api/test
43+
:exec-fn cognitect.test-runner.api/test
4044
:exec-args
4145
{:patterns [".*-tests?$"]}}
4246

4347
;; clj -Mdev:test:coverage
44-
:coverage {:extra-deps {cloverage/cloverage {:mvn/version "1.2.4"}}
45-
:main-opts ["-m" "cloverage.coverage" "-p" "src" "-s" "test" "--codecov"]}
48+
:coverage {:extra-deps {cloverage/cloverage {:mvn/version "1.2.4"}}
49+
:main-opts ["-m" "cloverage.coverage" "-p" "src" "-s" "test" "--codecov"]}
4650

4751
;; clj -T:build <command>
48-
:build {:deps {io.github.hlship/build-tools
49-
{:git/tag "0.12.1" :git/sha "05f3ae"}}
50-
:ns-default build}}
52+
:build {:deps {io.github.hlship/build-tools
53+
{:git/tag "0.12.1" :git/sha "05f3ae"}}
54+
:ns-default build}}
5155

5256
:net.lewisship.build/scm
5357
{:license :asl}
5458

5559
:codox/config
5660
{:description "Clojure-native implementation of GraphQL"
57-
:source-uri "https://github.com/walmartlabs/lacinia/blob/master/{filepath}#L{line}"}}
61+
:source-uri "https://github.com/walmartlabs/lacinia/blob/master/{filepath}#L{line}"}}

0 commit comments

Comments
 (0)