-
-
Notifications
You must be signed in to change notification settings - Fork 15
90 lines (83 loc) · 2.5 KB
/
pull-request-checks.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Pull Request Checks
on:
pull_request:
paths-ignore:
- 'README.md'
jobs:
assemble-debug-apk:
name: Assemble Debug APK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: 17
- name: Assemble Debug APK
run: bash ./gradlew sample:assembleDebug
- name: Upload app APK
uses: actions/upload-artifact@v4
with:
name: debug-apk
path: sample/build/outputs/apk/debug/sample-debug.apk
assemble-debug-android-test-apk:
name: Assemble Instrumental APK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: 17
- name: Assemble Instrumental APK
run: bash ./gradlew sample:assembleDebugAndroidTest
- name: Upload app APK
uses: actions/upload-artifact@v4
with:
name: test-apk
path: sample/build/outputs/apk/androidTest/debug/sample-debug-androidTest.apk
firebase-lab-test:
needs: [ assemble-debug-apk, assemble-debug-android-test-apk ]
name: Firebase Instrumental API
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
api: [ 26, 27, 28, 29, 30, 31, 32, 33 ]
steps:
- uses: actions/checkout@v3
- name: Download Debug APK
uses: actions/download-artifact@v4
with:
name: debug-apk
- name: Download Test APK
uses: actions/download-artifact@v4
with:
name: test-apk
- name: Run tests on Firebase Test Lab for API ${{ matrix.api }}
uses: vacxe/[email protected]
with:
service-account: ${{ secrets.FIREBASE_TESTLAB_JSON }}
app: sample-debug.apk
test: sample-debug-androidTest.apk
device-id: MediumPhone.arm
os-version-id: ${{ matrix.api }}
num-flaky-test-attempts: 4
build-documentation:
runs-on: ubuntu-latest
name: Build Documentation
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- name: Install dependencies
working-directory: ./documentation
run: npm install
- name: Build site
working-directory: ./documentation
run: npm run build