forked from firebase/flutterfire
-
Notifications
You must be signed in to change notification settings - Fork 4
69 lines (65 loc) · 2.33 KB
/
firebase_crashlytics.yaml
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
name: firebase_crashlytics
on:
pull_request:
paths:
- "packages/firebase_crashlytics/**"
- ".github/workflows/firebase_crashlytics.yaml"
# Ensure this workflow runs if the Firebase Android SDK version gets bumped.
- "packages/firebase_core/firebase_core/android/gradle.properties"
# Ensure this workflow runs if the Firebase iOS SDK version gets bumped.
- "packages/firebase_core/firebase_core/ios/firebase_sdk_version.rb"
push:
branches:
- master
paths-ignore:
- "docs/**"
- "**.md"
env:
FLUTTERFIRE_PLUGIN_SCOPE: "*firebase_crashlytics*"
FLUTTERFIRE_PLUGIN_SCOPE_EXAMPLE: "*firebase_crashlytics_example*"
jobs:
android:
if: github.event_name == 'pull_request'
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: "Install Flutter"
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: "Install Tools"
run: ./.github/workflows/scripts/install-tools.sh
- name: "Build Example"
run: ./.github/workflows/scripts/build-example.sh android
- name: "Drive Example"
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 28
arch: x86_64
# Firebase Crashlytics works without Google Play Services, so we don't use the `googleapis`
# emulator target as it's considerably slower on CI.
target: default
profile: Nexus 5X
script: ./.github/workflows/scripts/drive-example.sh android
apple:
runs-on: macos-latest
timeout-minutes: 35
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: "Install Flutter"
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: "Install Tools"
run: |
./.github/workflows/scripts/install-tools.sh
flutter config --enable-macos-desktop
- name: "Build iOS Example"
run: ./.github/workflows/scripts/build-example.sh ios
- name: "Drive iOS Example"
run: ./.github/workflows/scripts/drive-example.sh ios
- name: "Build MacOS Example"
run: ./.github/workflows/scripts/build-example.sh macos
- name: "Drive MacOS Example"
run: ./.github/workflows/scripts/drive-example.sh macos