From f5fc4f7e17c3b4d8538a7b00c61f5fa3bdbcfdde Mon Sep 17 00:00:00 2001 From: Yogesh Choudhary Paliyal Date: Sat, 23 Oct 2021 15:18:02 +0530 Subject: [PATCH] Create android.yaml --- .github/workflows/android.yaml | 40 ++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/android.yaml diff --git a/.github/workflows/android.yaml b/.github/workflows/android.yaml new file mode 100644 index 00000000..9b8f888a --- /dev/null +++ b/.github/workflows/android.yaml @@ -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