-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds android-lint workflow that runs on pull request
- Loading branch information
1 parent
6cf9c14
commit a572dca
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |