Add Metalava SemVer Task #4
Workflow file for this run
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: Metalava SemVer Check | |
| on: | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - name: Checkout main | |
| uses: actions/[email protected] | |
| with: | |
| ref: ${{ github.base_ref }} | |
| - name: Set up JDK 17 | |
| uses: actions/[email protected] | |
| with: | |
| java-version: 17 | |
| distribution: temurin | |
| cache: gradle | |
| - name: Copy previous api.txt files | |
| run: ./gradlew copyApiTxtFile | |
| - name: Checkout PR | |
| uses: actions/[email protected] | |
| with: | |
| ref: ${{ github.head_ref }} | |
| clean: false | |
| - name: Run Metalava SemVer check | |
| run: ./gradlew metalavaSemver |