Skip to content

Commit 9a13e35

Browse files
committed
Test against multiple Java versions
1 parent 5bd94ab commit 9a13e35

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.github/actions/setup-build/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
name: Set up Build
22
description: Sets up Build
3+
inputs:
4+
java-version:
5+
description: 'The Java version to set up'
6+
required: true
7+
default: '8'
38
runs:
49
using: "composite"
510
steps:
611
- uses: ./.github/actions/setup-java
12+
with:
13+
java-version: ${{ inputs.java-version }}
714
- name: Clear existing docker image cache
815
shell: bash
916
run: docker image prune -af
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
name: Set up Java
22
description: Sets up Java version
3+
inputs:
4+
java-version:
5+
description: 'The Java version to set up'
6+
required: true
7+
default: '8'
38
runs:
49
using: "composite"
510
steps:
611
- uses: actions/setup-java@v4
712
with:
8-
java-version: '8'
13+
java-version: ${{ inputs.java-version }}
914
distribution: temurin

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,14 @@ jobs:
5050
runs-on: ubuntu-22.04
5151
permissions:
5252
checks: write
53+
strategy:
54+
matrix:
55+
java: [ '8', '17', '21', '22', '23-ea', '24-ea' ]
5356
steps:
5457
- uses: actions/checkout@v4
5558
- uses: ./.github/actions/setup-build
59+
with:
60+
java-version: ${{ matrix.java }}
5661
- name: Build and test with Gradle
5762
run: |
5863
./gradlew :testcontainers:check --no-daemon --continue --scan

0 commit comments

Comments
 (0)