-
Notifications
You must be signed in to change notification settings - Fork 42
43 lines (36 loc) · 1.1 KB
/
android-lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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: Setup reviewdog
uses: reviewdog/[email protected]
- 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 Lint Results
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cat scratchoff/build/reports/lint-results-debug.sarif \
| reviewdog \
-name=android-lint \
-f=sarif \
-reporter=github-pr-review \
-level=warning