Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add build matrix to test multiple Java versions
- Test plugin compatibility on Java 17 and Java 24
- Use fail-fast: false to ensure both versions are tested
- Include Java version in test report artifact names
- Dynamic job names show which Java version is being tested

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
  • Loading branch information
pditommaso and claude committed Sep 11, 2025
commit efd6c52867f81f8d1520da110030c8342afdaea7
13 changes: 9 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,22 @@ on:

jobs:
build:
name: Build
name: Build (Java ${{ matrix.java }})
if: ${{ !contains(github.event.head_commit.message , '[ci skip]') && (github.event_name == 'push' || github.repository != github.event.pull_request.head.repo.full_name) }}
runs-on: ubuntu-latest

strategy:
matrix:
java: ['17', '24']
fail-fast: false

steps:
- uses: actions/checkout@v4

- name: Set up JDK 17
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: ${{ matrix.java }}
distribution: 'temurin'

- name: Setup Gradle
Expand All @@ -43,6 +48,6 @@ jobs:
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-reports
name: test-reports-java-${{ matrix.java }}
path: |
**/build/reports/tests/test
Loading