-
Notifications
You must be signed in to change notification settings - Fork 14
60 lines (47 loc) · 1.45 KB
/
android-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
49
50
51
52
53
54
55
56
57
58
59
60
name: Android CI
on: [ push ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unit_tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Project Checkout
uses: actions/[email protected]
- name: Setup Android Build
uses: ./.github/actions/setup-android-build
- name: Run Tests
run: ./gradlew testPinboardapiDebugUnitTest --stacktrace
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Project Checkout
uses: actions/[email protected]
- name: Setup Android Build
uses: ./.github/actions/setup-android-build
- name: Build
run: ./gradlew assemblePinboardapi --stacktrace
- name: Upload Pinboard API APK
if: success()
uses: actions/[email protected]
with:
path: app/build/outputs/apk/pinboardapi/debug/*.apk
instrumented_tests:
name: Instrumented Tests
runs-on: macOS-latest
needs: [ unit_tests, build ]
steps:
- name: Project Checkout
uses: actions/[email protected]
- name: Setup Android Build
uses: ./.github/actions/setup-android-build
- name: Run instrumented tests
uses: reactivecircus/[email protected]
with:
api-level: 30
arch: x86_64
disable-animations: true
script: ./gradlew :app:connectedPinboardapiDebugAndroidTest --stacktrace