Skip to content

Commit c391c5a

Browse files
Update action.yml
1 parent a0cc836 commit c391c5a

1 file changed

Lines changed: 39 additions & 3 deletions

File tree

action.yml

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,42 @@ author: 'Vukan-Markovic <vukan.markovic97@gmail.com>'
44
branding:
55
icon: 'box'
66
color: 'green'
7-
runs:
8-
using: 'docker'
9-
image: 'Dockerfile'
7+
on:
8+
pull_request:
9+
branches:
10+
- 'master'
11+
push:
12+
branches:
13+
- 'master'
14+
15+
jobs:
16+
test:
17+
name: Unit Tests
18+
runs-on: ubuntu-18.04
19+
20+
steps:
21+
- uses: actions/checkout@v1
22+
- name: Set up JDK 1.8
23+
uses: actions/setup-java@v1
24+
with:
25+
java-version: 1.8
26+
- name: Run Unit tests
27+
run: bash ./gradlew test --stacktrace
28+
29+
apk:
30+
name: Generate APK
31+
runs-on: ubuntu-18.04
32+
33+
steps:
34+
- uses: actions/checkout@v1
35+
- name: Set up JDK 1.8
36+
uses: actions/setup-java@v1
37+
with:
38+
java-version: 1.8
39+
- name: Build debug APK
40+
run: bash ./gradlew assembleDebug --stacktrace
41+
- name: Create APK artifact
42+
uses: actions/upload-artifact@v1
43+
with:
44+
name: app
45+
path: app/build/outputs/apk/debug/app-debug.apk

0 commit comments

Comments
 (0)