-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (47 loc) · 1.3 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Pre-merge checks
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
build_and_test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up JDK 11
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 11
- name: Build and test project
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew androidApp:assembleDebug androidApp:testDebugUnitTest
test:
runs-on: macOS-latest
timeout-minutes: 30
strategy:
matrix:
api-level: [21, 29]
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up JDK 11
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 11
- name: Run instrumentation tests
uses: reactivecircus/[email protected]
with:
api-level: ${{ matrix.api-level }}
disable-animations: true
script: ./gradlew androidApp:connectedCheck
- name: Upload test reports
if: always()
uses: actions/upload-artifact@v2
with:
name: test-reports
path: ${{ env.SAMPLE_PATH }}/app/build/reports