-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (38 loc) · 1.11 KB
/
build-on-push.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
name: Build
on:
push:
branches: [ master ]
pull_request:
types: [ opened, synchronize ]
jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
- name: Assemble the jar
uses: gradle/gradle-build-action@v2
with:
arguments: assemble
- name: Run tests
uses: gradle/gradle-build-action@v2
with:
arguments: check
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always() # always run even if the previous step fails
with:
check_name: JUnit Test Report
report_paths: '**/build/test-results/**/TEST-*.xml'
- name: Publish Coverage Report
uses: codecov/codecov-action@v3