Create ci.yml
This commit is contained in:
parent
14ac779f9c
commit
0c382cc614
1 changed files with 50 additions and 0 deletions
50
.github/workflows/ci.yml
vendored
Normal file
50
.github/workflows/ci.yml
vendored
Normal file
|
@ -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/android-test-report-action@v1.2.0
|
||||
|
||||
# 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
|
Loading…
Reference in a new issue