-
Notifications
You must be signed in to change notification settings - Fork 9
59 lines (48 loc) · 1.26 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
59
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@v3
with:
distribution: temurin
java-version: 17
- name: Check app
run: ./gradlew check
test:
timeout-minutes: 30
runs-on: macos-latest
strategy:
matrix:
api-level: [ 21, 29 ]
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- uses: ./.github/actions/gradle-cache
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: AVD cache
uses: actions/cache@v3
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}
# TODO: Fix tests
# - name: Run tests
# uses: reactivecircus/android-emulator-runner@v2
# with:
# api-level: ${{ matrix.api-level }}
# script: ./gradlew connectedAndroidTest