Create android.yaml

This commit is contained in:
Yogesh Choudhary Paliyal
2021-10-23 15:18:02 +05:30
committed by GitHub
parent 3fa230252a
commit f5fc4f7e17

40
.github/workflows/android.yaml vendored Normal file
View File

@@ -0,0 +1,40 @@
name: Android CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: 🧱 Set Up JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: 🧪 Run Tests
run: ./gradlew test
- name: 🛠 Build Project with Spotless Check
run: ./gradlew spotlessCheck assemble lintDebug --stacktrace
- name: ⏳ Build with Gradle
run: ./gradlew build
- name: 🏗 Build APK
run: bash ./gradlew assembleProductionDebug --stacktrace
- name: 🚀 Upload APK 📱
uses: actions/upload-artifact@v2
with:
name: app
path: app/build/outputs/apk/debug/app-debug.apk
retention-days: 3