-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 1.09 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
38
39
40
41
42
43
44
45
46
47
name: Build with Gradle
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
checks: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# https://github.com/actions/setup-java
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'liberica'
# https://github.com/gradle/gradle-build-action
- name: Gradle - setup
uses: gradle/[email protected]
- name: Gradle - ktlintCheck
uses: gradle/[email protected]
with:
arguments: ktlintCheck
- name: Gradle - build
uses: gradle/[email protected]
with:
arguments: build
# https://github.com/marketplace/actions/junit-report-action
- 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/test/TEST-*.xml'