Skip to content

Commit b01839d

Browse files
committed
Update CI Workflow
Signed-off-by: Sanju S <spikeysanju98@gmail.com>
1 parent ec22e51 commit b01839d

File tree

2 files changed

+25
-28
lines changed

2 files changed

+25
-28
lines changed

.github/workflows/android_build.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
name: Android Build
1+
name: Android CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
28

3-
on: pull_request
49

510
jobs:
611
build:
@@ -10,14 +15,26 @@ jobs:
1015
steps:
1116
- uses: actions/checkout@v1
1217

13-
- name: Set Up JDK
18+
- name: 🧱 Set Up JDK
1419
uses: actions/setup-java@v1
1520
with:
16-
java-version: 1.8
17-
21+
java-version: 11
1822

19-
- name: Run Tests
23+
- name: 🧪 Run Tests
2024
run: ./gradlew test
2125

22-
- name: Build Project
23-
run: ./gradlew assemble
26+
- name: 🛠 Build Project with Spotless Check
27+
run: ./gradlew spotlessCheck assemble lintDebug --stacktrace
28+
29+
- name: ⏳ Build with Gradle
30+
run: ./gradlew build
31+
32+
- name: 🏗 Build APK
33+
run: bash ./gradlew assembleDebug --stacktrace
34+
35+
- name: 🚀 Upload APK 📱
36+
uses: actions/upload-artifact@v2
37+
with:
38+
name: app
39+
path: app/build/outputs/apk/debug/app-debug.apk
40+
retention-days: 3

.github/workflows/lint.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)