Skip to content

Commit

Permalink
Adds android-lint workflow that runs on pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsilber committed Dec 21, 2023
1 parent 6cf9c14 commit a572dca
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/android-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Android Lint

on:
pull_request:

jobs:
android_lint:
name: Run Android Lint
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/[email protected]

- uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 17

- name: Cache Gradle Files
uses: actions/[email protected]
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}

- name: Run Android Lint
run: ./gradlew scratchoff:lintDebug

- name: Review Android Lint Results
uses: DVDAndroid/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
lint_xml_file: scratchoff/build/reports/lint-results-debug.html
reporter: github-pr-review
level: warning

0 comments on commit a572dca

Please sign in to comment.