-
Notifications
You must be signed in to change notification settings - Fork 83
37 lines (37 loc) · 1.08 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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:
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