-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.65 KB
/
gradleBuild.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Java CI with Gradle
on:
push:
branches: [ "main", "dev" ]
pull_request:
branches: [ "main", "dev" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: recursive
- name: Set up JDK 21
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b
with:
java-version: '21'
distribution: 'corretto'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808
- name: Execute Gradle assemble
run: ./gradlew assemble
- name: Execute tests
run: ./gradlew test
- name: Test Summary
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86
with:
paths: "**/test-results/**/TEST-*.xml"
if: always()
- name: Publish Test Report
uses: mikepenz/action-junit-report@1c2f98def10c04c100f43585e531356b19f7461f
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
token: ${{ secrets.GITHUB_TOKEN }}
comment: true
updateComment: true
- name: Code Coverage
id: jacoco
uses: madrapps/jacoco-report@cae93f61ea553f8babe9d8c1e365c1ce5cece922
with:
paths: ${{github.workspace}}/**/spha-cli/build/reports/tests/test/index.html
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: '75'
min-coverage-changed-files: '75'
title: Code Coverage
update-comment: true