-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.3 KB
/
build.yml
File metadata and controls
48 lines (46 loc) · 1.3 KB
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: build
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v6
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v5
- name: Setup JDK
uses: actions/setup-java@v5
with:
java-version: '25'
distribution: 'microsoft'
- name: Make Gradle Wrapper Executable
run: chmod +x ./gradlew
- name: Build
run: ./gradlew build
- name: Capture Build Artifacts
uses: actions/upload-artifact@v6
with:
name: Artifacts
path: build/libs/
checkstyle:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v6
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v5
- name: Setup JDK
uses: actions/setup-java@v5
with:
java-version: '25'
distribution: 'microsoft'
- name: Make Gradle Wrapper Executable
run: chmod +x ./gradlew
- name: Run Checkstyle
run: ./gradlew check
- name: Upload Checkstyle Report
uses: actions/upload-artifact@v6
if: always()
with:
name: checkstyle-report
path: build/reports/checkstyle/