Skip to content

Commit b976bcf

Browse files
authored
chore: upgrade build-and-test workflow to test Java 17 and 21 (#321)
# Description - Added matrix strategy to test against multiple Java versions (17, 21) - Dynamically sets JDK version in workflow steps using matrix variable - Ensures compatibility across different Java environments <img width="612" height="355" alt="image" src="https://github.com/user-attachments/assets/67345f39-87b6-472f-b144-d6480759628f" /> Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [X] Follow the [`CONTRIBUTING` Guide](../CONTRIBUTING.md). - [X] Make your Pull Request title in the <https://www.conventionalcommits.org/> specification. - [X] Ensure the tests pass Fixes #313 🦕
1 parent cfb3cd9 commit b976bcf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build-and-test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ concurrency:
1414
jobs:
1515
build:
1616
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
java-version: ['17', '21']
1720
steps:
1821
- uses: actions/checkout@v4
19-
- name: Set up JDK 17
22+
- name: Set up JDK ${{ matrix.java-version }}
2023
uses: actions/setup-java@v4
2124
with:
22-
java-version: '17'
25+
java-version: ${{ matrix.java-version }}
2326
distribution: 'temurin'
2427
cache: maven
2528
- name: Build with Maven and run tests

0 commit comments

Comments
 (0)