File tree 1 file changed +13
-3
lines changed
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -15,18 +15,28 @@ jobs:
15
15
steps :
16
16
- uses : actions/checkout@v4
17
17
18
+ - name : Cache Gradle dependencies
19
+ uses : actions/cache@v4
20
+ with :
21
+ path : ~/.gradle/caches
22
+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
23
+ restore-keys : |
24
+ ${{ runner.os }}-gradle-
25
+
18
26
- name : Set up JDK 17
19
27
uses : actions/setup-java@v4
20
28
with :
21
29
java-version : ' 17'
22
30
distribution : ' temurin'
23
- cache : gradle
24
31
25
32
- name : Grant execute permission for gradlew
26
33
run : chmod +x gradlew
27
34
35
+ - name : Clean Build
36
+ run : ./gradlew clean
37
+
28
38
- name : Build with Gradle
29
- run : ./gradlew build -x lint --warning-mode all
39
+ run : ./gradlew build -x lint --info
30
40
31
41
- name : Upload build artifacts
32
42
uses : actions/upload-artifact@v4
38
48
uses : actions/upload-artifact@v4
39
49
with :
40
50
name : lint-report
41
- path : app/build/reports/lint-results-debug.html
51
+ path : app/build/reports/lint-results-debug.html
You can’t perform that action at this time.
0 commit comments