-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (49 loc) · 1.53 KB
/
run-unit-tests.yaml
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
54
55
56
57
58
59
60
61
62
63
name: Java CI
on: [push]
permissions:
contents: read
checks: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
#- name: Test
# uses: gradle/gradle-build-action@v2
# with:
# arguments: test
#- name: Build
# uses: gradle/gradle-build-action@v2
# with:
# arguments: build
#- name: Build (jlink)
# uses: gradle/gradle-build-action@v2
# with:
# arguments: jlink
#- name: Build (jpackage)
# uses: gradle/gradle-build-action@v2
# with:
# arguments: jpackage
- name: Change wrapper persmissions
run: chmod +x ./gradlew
# build everything (includes running unit tests)
- name: Execute Gradle build
run: ./gradlew build
# report the results
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
detailed_summary: true # display detailed summary of the report
include_passed: true # include passed tests in the results table