Skip to content

Commit 9ec3f1e

Browse files
Create main.yml
1 parent 5ceb81a commit 9ec3f1e

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/main.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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

0 commit comments

Comments
 (0)