Skip to content

Commit

Permalink
Create ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamuno authored Nov 5, 2020
1 parent 14ac779 commit 0c382cc
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This is a basic workflow to help you get started with Actions

name: CI

on: [push, pull_request]

jobs:
build:
name: Build APK
runs-on: ubuntu-20.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: ./gradlew assembleDebug

test:
name: Unit Tests
runs-on: ubuntu-20.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: ./gradlew test
- name: Android Test Report
uses: asadmansr/[email protected]

# androidTest:
# name: Instrumented Tests
# runs-on: macOS-latest
# steps:
# - uses: actions/checkout@v1
# - name: Set up JDK 1.8
# uses: actions/setup-java@v1
# with:
# java-version: 1.8
# - name: Run Instrumented Tests
# uses: reactivecircus/android-emulator-runner@v1
# with:
# api-level: 29
# arch: x86
# disable-animations: true
# script: ./gradlew connectedAndroidTest --stacktrace

0 comments on commit 0c382cc

Please sign in to comment.