mirror of
https://github.com/yogeshpaliyal/KeyPass.git
synced 2026-01-05 16:36:31 -06:00
Create android.yaml
This commit is contained in:
committed by
GitHub
parent
3fa230252a
commit
f5fc4f7e17
40
.github/workflows/android.yaml
vendored
Normal file
40
.github/workflows/android.yaml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user