summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2022-01-06 12:19:55 +0100
committerByteHamster <info@bytehamster.com>2022-01-16 11:23:29 +0100
commit114a2c192c9b68230ab9a089a79708ed31393499 (patch)
tree451e88ab71056dc2c137bb6c9441ff602ec2136f
parent2243ca372e9fd7272d61913d63d000060a7af9f6 (diff)
downloadantennapod-114a2c192c9b68230ab9a089a79708ed31393499.zip
Make checkstyle CI faster
-rw-r--r--.github/workflows/checks.yml11
-rw-r--r--config/checkstyle/suppressions.xml1
2 files changed, 4 insertions, 8 deletions
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index d55817141..e43172f83 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -14,15 +14,10 @@ jobs:
- uses: actions/checkout@v2
with:
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
- 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
id: vars
run: |
diff --git a/config/checkstyle/suppressions.xml b/config/checkstyle/suppressions.xml
index 612d582bd..47256a195 100644
--- a/config/checkstyle/suppressions.xml
+++ b/config/checkstyle/suppressions.xml
@@ -8,5 +8,6 @@
<suppress checks="." files="[\\/]generated-sources[\\/]"/>
<suppress checks="." files="[\\/]build[\\/]"/>
+ <suppress checks="." files="[\\/]gen[\\/]"/>
<suppress checks="." files="[\\/].idea[\\/]"/>
</suppressions>