Skip to content

Commit 06ae1b3

Browse files
committed
Parameteritize java versions.
1 parent 689ffbd commit 06ae1b3

File tree

4 files changed

+61
-7
lines changed

4 files changed

+61
-7
lines changed

.github/workflows/debug-stuff.yml

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,54 @@ on:
1313
default: 'master'
1414

1515
jobs:
16-
test-transit-clj:
17-
uses: ./.github/workflows/test-mvn-repo.yml
16+
test-money:
17+
uses: ./.github/workflows/lein-test.yml
1818
with:
1919
clojureRepo: ${{ inputs.clojureRepo }}
2020
clojureRef: ${{ inputs.clojureRef }}
21-
subjectRepo: 'cognitect/transit-clj'
21+
subjectRepo: 'clojurewerkz/money'
22+
subjectRef: 'main'
23+
javaVersion: '["11", "17", "21"]'
24+
25+
test-cheshire:
26+
uses: ./.github/workflows/lein-test.yml
27+
with:
28+
clojureRepo: ${{ inputs.clojureRepo }}
29+
clojureRef: ${{ inputs.clojureRef }}
30+
subjectRepo: 'dakrone/cheshire'
31+
subjectRef: 'master'
32+
javaVersion: '["8", "11", "17"]'
33+
34+
test-ring-core:
35+
uses: ./.github/workflows/lein-test.yml
36+
with:
37+
clojureRepo: ${{ inputs.clojureRepo }}
38+
clojureRef: ${{ inputs.clojureRef }}
39+
subjectRepo: 'ring-clojure/ring'
40+
subjectRef: 'master'
41+
javaVersion: '["11", "17", "21"]'
42+
43+
test-incomplete:
44+
uses: ./.github/workflows/lein-test.yml
45+
with:
46+
clojureRepo: ${{ inputs.clojureRepo }}
47+
clojureRef: ${{ inputs.clojureRef }}
48+
subjectRepo: 'nrepl/incomplete'
49+
subjectRef: 'main'
50+
51+
test-fressian:
52+
uses: ./.github/workflows/mvn-test.yml
53+
with:
54+
clojureRepo: ${{ inputs.clojureRepo }}
55+
clojureRef: ${{ inputs.clojureRef }}
56+
subjectRepo: 'Datomic/fressian'
2257
subjectRef: 'master'
58+
javaVersion: '["11", "17", "21"]'
59+
60+
test-pandect:
61+
uses: ./.github/workflows/lein-test.yml
62+
with:
63+
clojureRepo: ${{ inputs.clojureRepo }}
64+
clojureRef: ${{ inputs.clojureRef }}
65+
subjectRepo: 'xsc/pandect'
66+
subjectRef: 'main'

.github/workflows/lein-test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,17 @@ on:
2020
description: "The branch, tag or SHA to checkout for subject repo"
2121
type: string
2222
required: true
23+
javaVersion:
24+
description: 'Java matrix versions to use for the build'
25+
required: false
26+
default: '["8", "11", "17", "21"]'
27+
type: string
2328

2429
jobs:
2530
test:
2631
strategy:
2732
matrix:
28-
java-version: ["8", "11", "17", "21"]
33+
java-version: ${{ fromJson(inputs.javaVersion) }}
2934

3035
runs-on: ubuntu-latest
3136

.github/workflows/mvn-test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,17 @@ on:
2020
description: "The branch, tag or SHA to checkout for subject repo"
2121
type: string
2222
required: true
23+
javaVersion:
24+
description: 'Java matrix versions to use for the build'
25+
required: false
26+
default: '["8", "11", "17", "21"]'
27+
type: string
2328

2429
jobs:
2530
test:
2631
strategy:
2732
matrix:
28-
java-version: ["8", "11", "17", "21"]
33+
java-version: ${{ fromJson(inputs.javaVersion) }}
2934

3035
runs-on: ubuntu-latest
3136

.github/workflows/test-all-the-things.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ jobs:
967967
# clojureRepo: ${{ inputs.clojureRepo }}
968968
# clojureRef: ${{ inputs.clojureRef }}
969969
# subjectRepo: 'nrepl/incomplete'
970-
# subjectRef: 'master'
970+
# subjectRef: 'main'
971971

972972
# Requires prep phase to run
973973
# test-pedestal:
@@ -1030,7 +1030,7 @@ jobs:
10301030
# clojureRepo: ${{ inputs.clojureRepo }}
10311031
# clojureRef: ${{ inputs.clojureRef }}
10321032
# subjectRepo: 'xsc/pandect'
1033-
# subjectRef: 'master'
1033+
# subjectRef: 'main'
10341034

10351035
# Tests fail on at least Java 11 (need type hint for overloaded toArray)
10361036
# test-clj-jwt:

0 commit comments

Comments
 (0)