Skip to content

Commit e4c905f

Browse files
committed
Add Java 25 API tracker workflow and mise.toml for local dev
1 parent 40e0182 commit e4c905f

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: API Tracker (Java 25)
2+
3+
on:
4+
workflow_dispatch: # Manual trigger only
5+
6+
permissions:
7+
issues: write
8+
contents: read
9+
10+
jobs:
11+
track-api:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set up JDK 25
19+
uses: actions/setup-java@v4
20+
with:
21+
java-version: '25'
22+
distribution: 'temurin'
23+
24+
- name: Cache Maven dependencies
25+
uses: actions/cache@v4
26+
with:
27+
path: ~/.m2
28+
key: ${{ runner.os }}-m2-java25-${{ hashFiles('**/pom.xml') }}
29+
restore-keys: ${{ runner.os }}-m2
30+
31+
- name: Build and test project
32+
run: mvn clean install
33+
34+
- name: Run API Tracker
35+
run: |
36+
mvn exec:java \
37+
-pl json-java21-api-tracker \
38+
-Dexec.mainClass="io.github.simbo1905.tracker.ApiTrackerRunner" \
39+
-Dexec.args="INFO" \
40+
-Djava.util.logging.ConsoleHandler.level=INFO

mise.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[tools]
2+
java = "25.0.2"

0 commit comments

Comments
 (0)