forked from firebase/flutterfire
-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (88 loc) · 3.07 KB
/
firebase_auth.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: firebase_auth
on:
pull_request:
paths:
- "packages/firebase_auth/**"
- ".github/workflows/firebase_auth.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_auth*"
FLUTTERFIRE_PLUGIN_SCOPE_EXAMPLE: "*firebase_auth_example*"
jobs:
android:
runs-on: macos-latest
if: github.event_name == 'pull_request'
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
sudo npm i -g firebase-tools
- name: "Build Example"
run: ./.github/workflows/scripts/build-example.sh android
- name: Start Firebase Emulator
run: cd ./.github/workflows/scripts && ./start-firebase-emulator.sh
- name: "Drive Example"
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 28
arch: x86_64
target: google_apis
profile: Nexus 5X
script: ./.github/workflows/scripts/drive-example.sh android
apple:
runs-on: macos-latest
timeout-minutes: 40
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
sudo npm i -g firebase-tools
flutter config --enable-macos-desktop
- name: "Build iOS Example"
run: ./.github/workflows/scripts/build-example.sh ios
- name: Start Firebase Emulator
run: cd ./.github/workflows/scripts && ./start-firebase-emulator.sh
- 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
web:
runs-on: ubuntu-latest
timeout-minutes: 15
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-web
sudo npm i -g firebase-tools
- name: Start Firebase Emulator
run: cd ./.github/workflows/scripts && ./start-firebase-emulator.sh
- name: "Drive Example"
run: ./.github/workflows/scripts/drive-example.sh web