Java SDK tests against examples from the spec repo #127
Workflow file for this run
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: Test | |
on: | |
pull_request: | |
branches: [main] | |
env: | |
JAVA_VERSION: '11' | |
JAVA_DISTRO: 'zulu' | |
jobs: | |
build: | |
name: Unit Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: 'true' | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ env.JAVA_VERSION }} | |
distribution: ${{ env.JAVA_DISTRO }} | |
cache: maven | |
- name: Build | |
run: ./mvnw -ntp -B --file pom.xml verify | |
- name: Generate Surefire test reports | |
run: ./mvnw surefire-report:report | |
- name: Access Surefire test report | |
uses: actions/upload-artifact@v2 | |
with: | |
name: surefire-reports | |
path: sdk-java/sdk/target/site/surefire-report.html |