-
Notifications
You must be signed in to change notification settings - Fork 281
43 lines (41 loc) · 939 Bytes
/
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: Lint
on:
push:
branches:
- 'master'
- 'AppManager-*'
paths-ignore:
- 'fastlane/**'
- 'scripts/**'
- '*.md'
pull_request:
branches:
- 'master'
- 'AppManager-*'
paths-ignore:
- 'fastlane/**'
- 'scripts/**'
- '*.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone the repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
cache: 'gradle'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run lint
run: ./gradlew lint
- name: Upload lint results
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
path: ./app/build/reports/lint-results-debug.html