Make checkstyle CI faster
This commit is contained in:
parent
2243ca372e
commit
114a2c192c
|
@ -14,15 +14,10 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Cache Gradle
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.gradle/caches
|
|
||||||
~/.gradle/wrapper
|
|
||||||
key: gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
|
|
||||||
- name: Checkstyle
|
- name: Checkstyle
|
||||||
run: ./gradlew checkstyle
|
run: |
|
||||||
|
curl -s -L https://github.com/checkstyle/checkstyle/releases/download/checkstyle-9.2.1/checkstyle-9.2.1-all.jar > checkstyle.jar
|
||||||
|
find . -name "*\.java" | xargs java -Dconfig_loc=config/checkstyle -jar checkstyle.jar -c config/checkstyle/checkstyle.xml
|
||||||
- name: Find PR Base Commit
|
- name: Find PR Base Commit
|
||||||
id: vars
|
id: vars
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -8,5 +8,6 @@
|
||||||
|
|
||||||
<suppress checks="." files="[\\/]generated-sources[\\/]"/>
|
<suppress checks="." files="[\\/]generated-sources[\\/]"/>
|
||||||
<suppress checks="." files="[\\/]build[\\/]"/>
|
<suppress checks="." files="[\\/]build[\\/]"/>
|
||||||
|
<suppress checks="." files="[\\/]gen[\\/]"/>
|
||||||
<suppress checks="." files="[\\/].idea[\\/]"/>
|
<suppress checks="." files="[\\/].idea[\\/]"/>
|
||||||
</suppressions>
|
</suppressions>
|
||||||
|
|
Loading…
Reference in New Issue