File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Android CI
2
+
3
+ on :
4
+ push :
5
+ branches : [ "master" ]
6
+ pull_request :
7
+ branches : [ "master" ]
8
+
9
+ jobs :
10
+ build :
11
+
12
+ runs-on : ubuntu:24.04
13
+
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ - name : set up JDK 11
17
+ uses : actions/setup-java@v4
18
+ with :
19
+ java-version : ' 11'
20
+ distribution : ' temurin'
21
+ cache : gradle
22
+
23
+ - name : Grant execute permission for gradlew
24
+ run : chmod +x gradlew
25
+
26
+ - name : Run detekt
27
+ uses : iwata-n/actions-detekt@v1.0.0
28
+ with :
29
+ rule : ./detekt_rule.xml
30
+ result : ./build/detekt_result.xml
31
+ workdir : .
32
+ filter : " *.kt"
33
+
34
+ - name : Check build
35
+ run : ./gradlew check
36
+
37
+ - name : Save Gradle cache
38
+ uses : actions/cache@v4
39
+ with :
40
+ path : |
41
+ ~/.gradle/caches
42
+ ~/.gradle/wrapper
43
+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
44
+ restore-keys : |
45
+ ${{ runner.os }}-gradle-
46
+
You can’t perform that action at this time.
0 commit comments