File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Android CI
2+
3+ env :
4+ GRADLE_OPTS : " -Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false"
5+ GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED : true
6+
7+ on :
8+ pull_request :
9+
10+ concurrency :
11+ group : build-${{ github.ref }}
12+ cancel-in-progress : true
13+
14+ jobs :
15+ ci-build :
16+ runs-on : ubuntu-latest
17+
18+ if : ${{ !contains(github.event.pull_request.labels.*.name, 'skip-ci') }}
19+
20+ steps :
21+ - name : Checkout
22+ uses : actions/checkout@v4
23+
24+ - name : Setup JDK 17
25+ uses : actions/setup-java@v3
26+ with :
27+ distribution : ' corretto'
28+ java-version : 17
29+
30+ - name : Setup Android SDK
31+ uses : android-actions/setup-android@v2
32+
33+ - name : Setup Gradle
34+ uses : gradle/gradle-build-action@v2
35+ with :
36+ gradle-home-cache-cleanup : true
37+
38+ - name : Generate local.properties
39+ run : |
40+ echo '${{ secrets.LOCAL_PROPERTIES }}' >> ./local.properties
41+
42+ - name : Code style checks
43+ run : |
44+ ./gradlew ktlintCheck detekt
45+
46+ - name : Run build
47+ run : ./gradlew buildDebug --stacktrace
You can’t perform that action at this time.
0 commit comments