. d reformatted code and updated markdown snippets #127
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: Run tests on JDK 8 and 11 | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build-21-run-8: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set Java version for building (JDK 21) | |
| run: echo "zulu-21" > .java-version | |
| shell: bash | |
| - uses: jdx/mise-action@v3 | |
| - name: Turn off formatting | |
| run: ./set_formatting_off.sh | |
| shell: bash | |
| - run: mise exec -- mvn -B install --file pom.xml | |
| - name: Set up JDK8 for runtime testing | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '8' | |
| - uses: actions/checkout@v6 | |
| with: | |
| repository: approvals/ApprovalTests.Java.StarterProject | |
| - name: Use local build | |
| run: | | |
| sed -i '/<artifactId>approvaltests<\/artifactId>/{N;s/<version>.*<\/version>/<version>100.0.0-SNAPSHOT<\/version>/}' pom.xml | |
| - name: Setup Maven Wrapper for Java 8 compatibility | |
| run: | | |
| mvn wrapper:wrapper -Dmaven=3.8.8 | |
| - name: Run in JDK8 | |
| run: | | |
| java -version | |
| mvn -version | |
| ./mvnw verify | |
| - name: Publish Test Report for JDK 8 | |
| uses: mikepenz/action-junit-report@v6 | |
| if: always() | |
| with: | |
| report_paths: '**/target/surefire-reports/*.xml' | |
| - name: Set up JDK11 for runtime testing | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '11' | |
| - name: Run in JDK11 | |
| run: | | |
| java -version | |
| mvn -version | |
| ./mvnw verify | |
| - name: Publish Test Report for JDK 11 | |
| uses: mikepenz/action-junit-report@v6 | |
| if: always() | |
| with: | |
| report_paths: '**/target/surefire-reports/*.xml' |