diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 246aab45cfa..5f694bb7dae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,6 @@ name: Build on: push: branches: - - master - dev pull_request: types: [opened, synchronize, reopened] @@ -14,10 +13,10 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - name: Set up JDK 11 + - name: Set up JDK 17 uses: actions/setup-java@v1 with: - java-version: 11 + java-version: 17 - name: Cache SonarCloud packages uses: actions/cache@v1 with: @@ -35,4 +34,11 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # run: ./gradlew build sonarqube -Dsonar.scanner.force-deprecated-java-version=true - run: ./gradlew build iT \ No newline at end of file + run: ./gradlew build iT + - name: Report tests + uses: dorny/test-reporter@v1 + if: success() || failure() # run this step even if previous step failed + with: + name: JUnit Tests + path: build/test-results/**/*.xml # Path to test results + reporter: java-junit # Format of test results \ No newline at end of file