Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions .github/workflows/daily-api-tracker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Build project
run: mvn clean compile -DskipTests
- name: Build and test project
run: mvn clean install

- name: Run API Tracker
run: |
Expand Down
38 changes: 29 additions & 9 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,33 @@ on:
types: [opened, synchronize, reopened]

jobs:
build:
test-java21:
name: Test Core Library (Java 21)
runs-on: ubuntu-latest
name: Build with JDK 24

steps:
- uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'oracle'

- name: Cache Maven dependencies
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-java21-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-java21

- name: Test core library (Java 21)
run: mvn clean test -pl json-java21

test-java24:
name: Test with Tooling (Java 24)
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

Expand All @@ -25,11 +48,8 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Build with Maven
run: mvn clean compile
key: ${{ runner.os }}-m2-java24-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-java24

- name: Package JAR
run: mvn package
- name: Test full project (Java 24)
run: mvn clean test
Loading