File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Android CI
2+
3+ on :
4+ push :
5+ branches : [ "develop" ]
6+ pull_request :
7+ branches : [ "develop" ]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Gradle cache
17+ uses : actions/cache@v4
18+ with :
19+ path : |
20+ ~/.gradle/caches
21+ ~/.gradle/wrapper
22+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
23+ restore-keys : |
24+ ${{ runner.os }}-gradle-
25+
26+ - name : Set up JDK 21
27+ uses : actions/setup-java@v4
28+ with :
29+ java-version : ' 21'
30+ distribution : ' temurin'
31+ cache : gradle
32+
33+ - name : Grant execute permission for gradlew
34+ run : chmod +x gradlew
35+
36+ - name : Set up local.properties
37+ run : echo "${{ secrets.LOCAL_PROPERTIES }}" > local.properties
38+
39+ - name : Code style checks
40+ run : ./gradlew ktlintCheck detekt
41+
42+ - name : Run build
43+ run : ./gradlew buildDebug --stacktrace
You can’t perform that action at this time.
0 commit comments