-
Notifications
You must be signed in to change notification settings - Fork 16
48 lines (38 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
47
48
name: build
on:
pull_request:
push:
branches: [ master, develop ]
workflow_dispatch:
jobs:
tests:
runs-on: macos-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK environment
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Setup NDK
uses: nttld/setup-ndk@v1
with:
ndk-version: r21e
- name: Register NDK
run: "echo 'ndk.path=${{ steps.setup-ndk.outputs.ndk-path }}' >> local.properties"
- name: Assemble Android Test
run: ./gradlew assembleAndroidTest --stacktrace
- name: Run Instrumentation Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew connectedCheck --stacktrace
- name: Upload Coverage Report
uses: codecov/codecov-action@v3
with:
files: "tehreer-android/build/reports/coverage/androidTest/debug/report.xml"
verbose: true