Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vukan-markovic committed Mar 5, 2020
1 parent 5ceb81a commit 9ec3f1e
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Android Github Action

on:
pull_request:
branches:
- 'master'
push:
branches:
- 'master'

jobs:
test:
name: Unit Tests
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Run Unit tests
run: bash ./gradlew test --stacktrace

apk:
name: Generate APK
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build debug APK
run: bash ./gradlew assembleDebug --stacktrace
- name: Create APK artifact
uses: actions/upload-artifact@v1
with:
name: app
path: app/build/outputs/apk/debug/app-debug.apk

0 comments on commit 9ec3f1e

Please sign in to comment.