From 1efa797fdba9f033420ae98b6b3ddf0e10fe089a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20N=C3=BCsse?= Date: Tue, 12 Dec 2023 12:37:36 +0100 Subject: [PATCH] add lint action --- .github/workflows/lint.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..e0a35238 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,28 @@ +name: Android Lint + +on: + push: + pull_request: + branches-ignore: + - 'master' + +jobs: + checkLint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: gradle + - name: Run Linter + run: ./gradlew lint + - name: Upload Reports + if: always() + uses: actions/upload-artifact@v3 + with: + name: Lint Reports + path: ~/**/build/reports/ + retention-days: 30