Skip to content

Commit cfb3cd9

Browse files
authored
ci: add Java version matrix (17, 21, 24) to run-tck workflow (#323)
- Updated run-tck.yml to use a matrix strategy - Tests will now run against Java versions 17, 21, and 24 - Fixes #314 <img width="1438" height="978" alt="Screenshot 2025-10-01 232520" src="https://github.com/user-attachments/assets/9b05e006-5d6f-4c79-b6fe-d3b3ae571bc4" /> # Description Added a matrix strategy to the tck-test job with Java versions: [17, 21, 24] Updated the JDK setup step to use ${{ matrix.java-version }} instead of hardcoded '17' Updated the step name to dynamically show which Java version is being used Fixes #<314> 🦕
1 parent 8815fba commit cfb3cd9

File tree

2 files changed

+31
-3
lines changed

2 files changed

+31
-3
lines changed

.github/workflows/run-tck.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ concurrency:
2828
jobs:
2929
tck-test:
3030
runs-on: ubuntu-latest
31+
strategy:
32+
matrix:
33+
java-version: [17, 21, 25]
3134
steps:
3235
- name: Checkout a2a-java
3336
uses: actions/checkout@v4
@@ -37,10 +40,10 @@ jobs:
3740
repository: a2aproject/a2a-tck
3841
path: tck/a2a-tck
3942
ref: ${{ env.TCK_VERSION }}
40-
- name: Set up JDK 17
41-
uses: actions/setup-java@v4
43+
- name: Set up JDK ${{ matrix.java-version }}
44+
uses: actions/setup-java@v5
4245
with:
43-
java-version: '17'
46+
java-version: ${{ matrix.java-version }}
4447
distribution: 'temurin'
4548
cache: maven
4649
- name: check java_home

extras/queue-manager-replicated/tests/pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,31 @@
7171

7272
</dependencies>
7373

74+
<profiles>
75+
<profile>
76+
<id>java24-exclude-vertx-incompatible-tests</id>
77+
<activation>
78+
<jdk>[24,)</jdk>
79+
</activation>
80+
<build>
81+
<plugins>
82+
<plugin>
83+
<artifactId>maven-surefire-plugin</artifactId>
84+
<configuration>
85+
<argLine>--add-opens java.base/java.lang=ALL-UNNAMED</argLine>
86+
<excludes>
87+
<!-- TODO: Remove this profile when Quarkus is updated to a version using Vert.x 4.6.0+.
88+
These tests are excluded on Java 24+ due to a Vert.x ServiceLoader incompatibility with Quarkus streaming.
89+
Current Quarkus versions (e.g., 3.28.x) use Vert.x 4.5.x, which is not fully compatible with Java 24+. -->
90+
<exclude>**/KafkaReplicationIntegrationTest.java</exclude>
91+
</excludes>
92+
</configuration>
93+
</plugin>
94+
</plugins>
95+
</build>
96+
</profile>
97+
</profiles>
98+
7499
<build>
75100
<plugins>
76101
<plugin>

0 commit comments

Comments
 (0)