Skip to content

chore(GH actions): add test report #373

chore(GH actions): add test report

chore(GH actions): add test report #373

Workflow file for this run

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