Skip to content

Commit

Permalink
chore(GH actions): add test report
Browse files Browse the repository at this point in the history
  • Loading branch information
educhastenier committed Dec 19, 2023
1 parent c4f1dce commit e897c61
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Build
on:
push:
branches:
- master
- dev
pull_request:
types: [opened, synchronize, reopened]
Expand All @@ -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:
Expand All @@ -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
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

0 comments on commit e897c61

Please sign in to comment.