-
Notifications
You must be signed in to change notification settings - Fork 20
35 lines (30 loc) · 983 Bytes
/
checkstyle.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
name: Checkstyle check
on: [push, pull_request, workflow_dispatch]
jobs:
checkstyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache Gradle stuff
uses: actions/cache@v3
with:
key: gradle-${{ hashFiles('build.gradle', 'settings.gradle', 'gradle.properties', 'gradle/**') }}
restore-keys: |
gradle-${{ hashFiles('build.gradle', 'settings.gradle', 'gradle.properties', 'gradle/**') }}
gradle-
path: |
~/.gradle/caches
~/.gradle/wrapper
.gradle/quilt-loom-cache
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Run Checkstyle
run: ./gradlew -Pcheckstyle_max_warns=0 checkstyleMain
- name: Upload reports
uses: actions/upload-artifact@v2
if: always()
with:
name: Reports
path: build/reports/checkstyle/