ci: update

This commit is contained in:
TakahashiNg
2026-03-24 15:58:57 +00:00
parent ecd05770c1
commit ec52b8067e
+17 -16
View File
@@ -3,28 +3,29 @@ name: Java CI with Maven
on:
push:
pull_request:
branches: [ "main" ]
branches: ["main"]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: Set up JDK
uses: actions/setup-java@v5
with:
distribution: "temurin"
java-version: "25"
cache: "maven"
- name: Build and Test all modules
run: mvn -B clean verify
- name: Build and Test all modules
run: mvn -B clean verify
- name: Publish Test Report
uses: scacap/action-surefire-report@v1
if: failure()
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Test Report
uses: scacap/action-surefire-report@v1
if: failure()
with:
github_token: ${{ secrets.GITHUB_TOKEN }}