32 lines
613 B
YAML
32 lines
613 B
YAML
name: Android Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2.3.4
|
|
|
|
- name: Set up JDK 11
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 11
|
|
|
|
- name: Build with Gradle
|
|
run: ./gradlew build
|
|
|
|
- name: Run Tests
|
|
run: ./gradlew test
|
|
|
|
- name: Upload a Build Artifact (APK)
|
|
uses: actions/upload-artifact@v2.2.4
|
|
with:
|
|
name: app
|
|
path: app/build/outputs/apk/debug/app-debug.apk
|