-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1018 Bytes
/
verify.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
name: Verify PR
on: [ pull_request ]
jobs:
ktlint:
name: Run Kotlin lint
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: ktlint
uses: ScaCap/action-ktlint@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
androidLint:
name: Run Android Lint
needs: [ ktlint ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Run Gradle build
run: ./gradlew build
- name: Run Android Lint
uses: dvdandroid/action-android-lint@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
lint_xml_file: android/build/reports/lint-results.xml
reporter: github-pr-review