-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.02 KB
/
pr_lint_check.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
name: PR Lint Check
on:
pull_request:
jobs:
lint_check:
name: Check Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: '1'
- name: Ktlint
uses: ScaCap/action-ktlint@master
with:
android: true
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
android-wear-lint:
runs-on: ubuntu-latest
strategy:
matrix:
version: [17]
fail-fast: false
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: '1'
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: ${{ matrix.version }}
- name: lintDebug for wear app
continue-on-error: true
run: ./gradlew :wear:lint
- uses: actions/upload-artifact@v3
with:
name: android-lint-report
path: ~/**/wear/build/reports/lint-results*.html