-
-
Notifications
You must be signed in to change notification settings - Fork 16
36 lines (36 loc) · 1.1 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CI
on: push
jobs:
build:
runs-on: macos-latest
steps:
- name: "📥 Check-out"
uses: actions/checkout@v4
- name: "🧪 Gradle Wrapper Validation"
uses: gradle/wrapper-validation-action@v3
- name: "🧰 Install JDK"
uses: actions/setup-java@v4
with:
java-version: 1.8
java-package: jdk
- name: "🧰 Install Android SDK"
uses: android-actions/setup-android@v3
- name: "📁 Copy local CI properties"
run: cp ci/local.properties ./
- name: "🏗 Build"
run: ./gradlew assembleDebug
- name: "🧪 Android LINT"
run: ./gradlew lint
- name: "🧪 Code coverage"
run: ./gradlew jacocoTestReport
- name: "🧪 Unit test"
run: ./gradlew test
- name: "🧪 Integration test"
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 25
script: ./gradlew connectedAndroidTest
- name: "📤 Upload code coverage"
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}