Do release 1.0.0 #7
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: Maven Build & Test | ||
| on: [pull_request] | ||
| permissions: | ||
| checks: write | ||
| jobs: | ||
| build-java: | ||
| name: Build | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| java: [ 8, 11, 17, 21 ] | ||
| distribution: [ temurin ] # We could add more here: temurin, adopt, liberica, microsoft, corretto | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up JDK ${{ matrix.java }} ${{ matrix.distribution }} | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: ${{ matrix.java }} | ||
| distribution: ${{ matrix.distribution }} | ||
| cache: maven | ||
| gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import | ||
| gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase | ||
| - name: Build with Maven | ||
| run: mvn --batch-mode --update-snapshots verify -Prelease | ||
| with: | ||
| MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} | ||
| - name: Publish Test Report | ||
| uses: mikepenz/action-junit-report@v5 | ||
| if: ${{ matrix.java == 8 && (success() || failure()) }} # always run even if the previous step fails | ||
| with: | ||
| report_paths: '**/target/surefire-reports/TEST-*.xml' | ||