-
Notifications
You must be signed in to change notification settings - Fork 47
46 lines (35 loc) · 1.14 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
37
38
39
40
41
42
43
44
45
46
name: CI workflow
on: pull_request
jobs:
build:
runs-on: macos-13
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup JDK environment
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run KtLint
run: ./gradlew lintKotlin
- name: Run Detekt
run: ./gradlew detekt
- name: Assemble app
run: ./gradlew assembleDebug --stacktrace
- name: Run unit tests
run: ./gradlew app:testDebugUnitTest basic-feature:testDebugUnitTest --stacktrace
- name: Run Compose UI tests
uses: ReactiveCircus/android-emulator-runner@v2
with:
api-level: 26
disable-animations: false
script: ./gradlew basic-feature:connectedCheck --stacktrace
- name: Run Maestro UI tests
uses: mobile-dev-inc/action-maestro-cloud@v1
with:
api-key: ${{ secrets.MAESTRO_CLOUD_API_KEY }}
app-file: app/build/outputs/apk/debug/app-debug.apk