Skip to content

Commit 7425c98

Browse files
committed
GitHub action compile Java 8 as well, to earlier detect broken Java 8 build
1 parent 0d03966 commit 7425c98

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/run-tests.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ permissions:
66

77
jobs:
88
build:
9+
strategy:
10+
matrix:
11+
java:
12+
- version: 8
13+
profile: java8
14+
- version: 11
15+
profiles: java11
916
runs-on: ubuntu-latest
1017
steps:
1118
- name: Login to Docker Hub
@@ -20,17 +27,17 @@ jobs:
2027
enable_legacy_client_auth: 'true'
2128
firebird_conf: 'WireCrypt=Enabled'
2229
- uses: actions/checkout@v4
23-
- name: Set up Java 11
30+
- name: Set up Java ${{ matrix.java.version }}
2431
uses: actions/setup-java@v4
2532
with:
26-
java-version: '11'
33+
java-version: '${{ matrix.java.version }}'
2734
distribution: 'temurin'
2835
- name: Setup Gradle
2936
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326
3037
with:
3138
cache-read-only: ${{ github.ref != 'refs/heads/Branch_5_0' }}
3239
- name: Build with Gradle
33-
run: ./gradlew test -PbuildProfile=java11 -Ptest.dbondocker=true -Ptest.db.dir=/var/lib/firebird/data
40+
run: ./gradlew test -PbuildProfile=java${{ matrix.java.profile }} -Ptest.dbondocker=true -Ptest.db.dir=/var/lib/firebird/data
3441
- name: Store Report Artifact
3542
uses: actions/upload-artifact@v4
3643
if: always()

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ java {
6464
}
6565

6666
ext {
67-
junit_jupiter = '5.12.1'
67+
junit_jupiter = '5.12.2'
6868
hamcrest = '3.0'
6969
assertj = '3.27.3'
7070
// Mockito 5 requires Java 11 or higher
71-
mockito = findProperty('buildProfile') == 'java8' ? '4.11.0' : '5.16.1'
71+
mockito = findProperty('buildProfile') == 'java8' ? '4.11.0' : '5.18.0'
7272
}
7373

7474
dependencies {

0 commit comments

Comments
 (0)