Skip to content

Commit

Permalink
Update CI Workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Sanju S <spikeysanju98@gmail.com>
  • Loading branch information
Spikeysanju committed Nov 5, 2021
1 parent ec22e51 commit b01839d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 28 deletions.
33 changes: 25 additions & 8 deletions .github/workflows/android_build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Android Build
name: Android CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

on: pull_request

jobs:
build:
Expand All @@ -10,14 +15,26 @@ jobs:
steps:
- uses: actions/checkout@v1

- name: Set Up JDK
- name: 🧱 Set Up JDK
uses: actions/setup-java@v1
with:
java-version: 1.8

java-version: 11

- name: Run Tests
- name: 🧪 Run Tests
run: ./gradlew test

- name: Build Project
run: ./gradlew assemble
- 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 assembleDebug --stacktrace

- name: 🚀 Upload APK 📱
uses: actions/upload-artifact@v2
with:
name: app
path: app/build/outputs/apk/debug/app-debug.apk
retention-days: 3
20 changes: 0 additions & 20 deletions .github/workflows/lint.yml

This file was deleted.

0 comments on commit b01839d

Please sign in to comment.