chore(GH actions): add test report #373
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: Build Bonita Community | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build-bonita-community: | |
runs-on: ubuntu-latest | |
steps: | |
- name: ↙️ Checkout project sources | |
uses: actions/checkout@v4 | |
with: | |
sparse-checkout: '.' | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Cache SonarCloud packages | |
uses: actions/cache@v1 | |
with: | |
path: ~/.sonar/cache | |
key: ${{ runner.os }}-sonar | |
restore-keys: ${{ runner.os }}-sonar | |
- name: 🔧 Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
cache-read-only: false | |
- name: ⚙️ Run Community build & ✔️ unit tests | |
run: ./gradlew build | |
- name: 🚀 Publish Test Report | |
uses: mikepenz/action-junit-report@v4 | |
if: success() || failure() # always run even if the previous step fails | |
with: | |
report_paths: '**/build/test-results/**/*.xml' | |
detailed_summary: true |