invoke plugin and store job summary #227
This file contains 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: Java CI with Maven | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Java ${{ matrix.java }} | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ 8, 11, 17, 18, 19, 21, 22 ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: zulu | |
java-version: ${{ matrix.java }} | |
cache: maven | |
- name: Build with Maven | |
run: mvn -B package | |
- name: japicmp report in Job Summary | |
run: cd japicmp && \ | |
mvn -Pjapicmp com.github.siom79.japicmp:japicmp-maven-plugin:cmp && \ | |
cat ./japicmp/target/japicmp/japicmp.md >> GITHUB_STEP_SUMMARY |