File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : androidTest
2+
3+ on :
4+ pull_request :
5+ branches : ['*']
6+ push :
7+ branches : [master]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@v4
16+
17+ - name : Set up JDK 17
18+ uses : actions/setup-java@v4
19+ with :
20+ distribution : temurin
21+ java-version : 17
22+ cache : gradle
23+
24+ - name : Grant execute permission for gradlew
25+ run : chmod +x gradlew
26+
27+ - name : Cache Gradle dependencies
28+ uses : actions/cache@v3
29+ with :
30+ path : ~/.gradle/caches
31+ key : gradle-cache-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}
32+ restore-keys : gradle-cache-${{ runner.os }}-
33+
34+ - name : Run ktlint check
35+ run : ./gradlew ktlintCheck
36+
37+ - name : Upload build outputs (APKs)
38+ uses : actions/upload-artifact@v4
39+ with :
40+ name : build-outputs
41+ path : ./app/build/outputs
42+
43+ - name : Upload build reports
44+ if : always()
45+ uses : actions/upload-artifact@v4
46+ with :
47+ name : build-reports
48+ path : ./app/build/reports
You can’t perform that action at this time.
0 commit comments