File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Android Github Action
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - ' master'
7
+ push :
8
+ branches :
9
+ - ' master'
10
+
11
+ jobs :
12
+ test :
13
+ name : Unit Tests
14
+ runs-on : ubuntu-18.04
15
+
16
+ steps :
17
+ - uses : actions/checkout@v1
18
+ - name : Set up JDK 1.8
19
+ uses : actions/setup-java@v1
20
+ with :
21
+ java-version : 1.8
22
+ - name : Run Unit tests
23
+ run : bash ./gradlew test --stacktrace
24
+
25
+ apk :
26
+ name : Generate APK
27
+ runs-on : ubuntu-18.04
28
+
29
+ steps :
30
+ - uses : actions/checkout@v1
31
+ - name : Set up JDK 1.8
32
+ uses : actions/setup-java@v1
33
+ with :
34
+ java-version : 1.8
35
+ - name : Build debug APK
36
+ run : bash ./gradlew assembleDebug --stacktrace
37
+ - name : Create APK artifact
38
+ uses : actions/upload-artifact@v1
39
+ with :
40
+ name : app
41
+ path : app/build/outputs/apk/debug/app-debug.apk
You can’t perform that action at this time.
0 commit comments