-
Notifications
You must be signed in to change notification settings - Fork 14
50 lines (41 loc) · 1.14 KB
/
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
44
45
46
47
48
49
50
name: Android Lint
on:
pull_request:
jobs:
lint_job:
name: Lint
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Restore Cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Run Debug Lint
run: ./gradlew lintDebug
- name: Upload Lint Reports
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: lint-report
path: '**/build/reports/lint-results-*'
report_job:
runs-on: ubuntu-latest
needs: lint_job
if: ${{ always() }}
steps:
- name: Download Test Reports Folder
uses: actions/download-artifact@v2
with:
name: lint-report
- name: Android Test Report
uses: asadmansr/[email protected]