fix(pom): 消除写死版本号,统一为 ddd4j 权威版本属性引用(junit 4.13.2 / junit-jupiter 6.1… #74
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| verify: | |
| name: JDK ${{ matrix.java }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| java: [17] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: ${{ matrix.java }} | |
| cache: maven | |
| - run: mvn -B -ntp clean verify | |
| dependency-review: | |
| if: github.event_name == 'pull_request' | |
| name: Dependency review | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/dependency-review-action@v4 | |
| api-compatibility: | |
| if: github.event_name == 'pull_request' | |
| name: API compatibility | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: current | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.base_ref }} | |
| path: baseline | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| cache: maven | |
| - name: Install target branch baseline | |
| run: mvn -B -ntp -f baseline/pom.xml -DskipTests install | |
| - name: Check current public API against baseline | |
| run: >- | |
| mvn -B -ntp -f current/pom.xml clean verify -Papi-compatibility | |
| -Dapi.compatibility.version=2.0.x.20260630-SNAPSHOT |