-
Notifications
You must be signed in to change notification settings - Fork 9
58 lines (47 loc) · 1.24 KB
/
verify-pr.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
name: Verify Pull Request
on: [ pull_request, workflow_dispatch ]
jobs:
check:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- uses: ./.github/actions/gradle-cache
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Check app
run: ./gradlew check
test:
timeout-minutes: 30
runs-on: macos-13
strategy:
matrix:
api-level: [ 21, 29 ]
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- uses: ./.github/actions/gradle-cache
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: AVD cache
uses: actions/cache@v4
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}
- name: Run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
script: ./gradlew connectedAndroidTest