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