Comment out jmh #1648
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
| # This name is shown in the status badge in the README | |
| name: build | |
| on: | |
| push: | |
| branches-ignore: | |
| - 'tmp**' | |
| pull_request: | |
| branches-ignore: | |
| - 'tmp**' | |
| schedule: | |
| # Run once a week to check compatibility with new versions of dependencies | |
| - cron: '0 0 * * 1' | |
| jobs: | |
| test: | |
| name: JDK ${{ matrix.java }} ${{ matrix.distribution }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| java: [8, 11, 17, 21, 25] | |
| distribution: [temurin] | |
| include: | |
| - java: 25 | |
| distribution: zulu | |
| - java: 25 | |
| distribution: microsoft | |
| outputs: | |
| report-java: 25 | |
| report-dist: temurin | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK ${{ matrix.java }} | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: ${{ matrix.distribution }} | |
| - name: Build and test with JDK ${{ matrix.java }} | |
| run: ./gradlew clean test | |
| - name: Build archives | |
| run: ./gradlew assemble | |
| - name: Run test using Java 25 runtime | |
| run: ./gradlew testJava25 | |
| - name: Run test using Java 21 runtime | |
| run: ./gradlew testJava21 | |
| - name: Run test using Java 17 runtime | |
| run: ./gradlew testJava17 | |
| - name: Run test using Java 11 runtime | |
| run: ./gradlew testJava11 | |
| - name: Run test using Java 8 runtime | |
| run: ./gradlew testJava8 | |
| - name: Archive HTML test report | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: test-reports-java${{ matrix.java }}-${{ matrix.distribution }}-html | |
| path: "*/build/reports/**" | |
| - name: Archive JUnit test reports | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: test-reports-java${{ matrix.java }}-${{ matrix.distribution }}-xml | |
| path: "*/build/test-results/**/*.xml" | |
| - name: Check binary reproducibility | |
| if: ${{ matrix.java != 8 }} # JDK 8 does not produce reproducible binaries | |
| run: | | |
| ./gradlew clean primaryPublishJar | |
| find . -name '*.jar' | grep -v buildSrc | grep -v gradle-wrapper | xargs sha256sum | tee java-webauthn-server-artifacts.sha256sum | |
| ./gradlew clean primaryPublishJar && sha256sum -c java-webauthn-server-artifacts.sha256sum | |
| ./gradlew clean primaryPublishJar && sha256sum -c java-webauthn-server-artifacts.sha256sum | |
| - name: Archive artifact checksums | |
| if: ${{ matrix.java != 8 }} # JDK 8 does not produce reproducible binaries | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: artifact-checksums-java${{ matrix.java }}-${{ matrix.distribution }} | |
| path: java-webauthn-server-artifacts.sha256sum | |
| publish-test-results: | |
| name: Publish test results | |
| needs: test | |
| runs-on: ubuntu-latest | |
| if: ${{ always() && github.event_name == 'pull_request' }} | |
| permissions: | |
| checks: write | |
| pull-requests: write | |
| steps: | |
| - name: Download artifacts | |
| uses: actions/download-artifact@v6 | |
| with: | |
| name: test-reports-java${{ needs.test.outputs.report-java }}-${{ needs.test.outputs.report-dist }}-xml | |
| - name: Publish test results | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| with: | |
| files: "**/*.xml" |