-
Notifications
You must be signed in to change notification settings - Fork 59
48 lines (47 loc) · 1.16 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
48
name: Gradle Build
on:
push:
branches-ignore:
- 'backport/**'
- 'whitesource-remediate/**'
pull_request:
types: [opened, synchronize, reopened]
jobs:
spotless:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Spotless Check
run: ./gradlew spotlessCheck
javadoc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Javadoc CheckStyle
run: ./gradlew checkstyleMain
- name: Javadoc Check
run: ./gradlew javadoc
check:
needs: [spotless, javadoc]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
- name: Run Gradle Check
run: |
./gradlew check
- name: Upload Coverage Report
uses: codecov/codecov-action@v4
with:
file: ./build/reports/jacoco/test/jacocoTestReport.xml
publish:
needs: [check]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Publish to Maven Local
run: ./gradlew publishToMavenLocal