fix(pom): 去重 name/url、统一 XML 缩进格式(xmllint)、修复 scm URL,移除覆盖 parent 版本管… #61
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: [8] | |
| 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=1.0.x.20260630-SNAPSHOT |