-
Notifications
You must be signed in to change notification settings - Fork 367
42 lines (39 loc) · 1.22 KB
/
android.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
name: Mixpanel Android Pull Request and master branch CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: macos-13
steps:
- name: Checkout the code
uses: actions/checkout@v4.1.7
- name: Run Unit test
uses: reactivecircus/android-emulator-runner@v2.32.0
with:
api-level: 34
profile: Nexus 5X
arch: x86_64
script: ./gradlew createDebugCoverageReport
- name: Lint
run: ./gradlew lint
- name: Upload test report
uses: actions/upload-artifact@v4
if: always()
with:
name: Unit Test Report
path: /Users/runner/work/mixpanel-android/mixpanel-android/build/reports/androidTests/connected
- name: Upload test coverage report
uses: actions/upload-artifact@v4
with:
name: Test Coverage Report
path: /Users/runner/work/mixpanel-android/mixpanel-android/build/reports/coverage/debug/
- name: Upload lint report
uses: actions/upload-artifact@v4
with:
name: Lint Report
path: /Users/runner/work/mixpanel-android/mixpanel-android/build/reports/lint-results.html
- name: Android docs
run: ./gradlew --info androidJavadocs