-
-
Notifications
You must be signed in to change notification settings - Fork 861
200 lines (180 loc) · 6.29 KB
/
connectivity_plus.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
# Build Connectivity Info Plus Example
name: connectivity_plus
concurrency:
group: connectivity_plus_${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
defaults:
run:
shell: bash
on:
pull_request:
paths:
- "packages/connectivity_plus/**"
- ".github/workflows/connectivity_plus.yaml"
- "!**.md"
- "!**.gitignore"
env:
PLUGIN_SCOPE: "*connectivity_plus*"
PLUGIN_EXAMPLE_SCOPE: "*connectivity_plus_example*"
jobs:
android:
runs-on: macos-latest
timeout-minutes: 30
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
- name: "Install Flutter"
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: "Install Tools"
run: ./.github/workflows/scripts/install-tools.sh
# Required for Android builds
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "11"
- name: "Build Example"
run: ./.github/workflows/scripts/build-examples.sh android ./lib/main.dart
android_integration_test:
runs-on: macos-latest
timeout-minutes: 30
strategy:
matrix:
android-api-level: [ 21, 26, 32 ]
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
- name: "Install Flutter"
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: "Install Tools"
run: ./.github/workflows/scripts/install-tools.sh
# Required for Android builds
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "11"
- name: "Bootstrap Workspace"
run: melos bootstrap
- name: "Android Integration Test"
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.android-api-level }}
cores: 3
target: google_apis
arch: x86_64
force-avd-creation: false
profile: Nexus 5X
script: ./.github/workflows/scripts/integration-test.sh android connectivity_plus_example
ios:
runs-on: macos-latest
timeout-minutes: 30
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
- 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-examples.sh ios ./lib/main.dart
ios_integration_test:
runs-on: macos-latest
timeout-minutes: 30
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
- name: "Install Flutter"
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: "Install Tools"
run: ./.github/workflows/scripts/install-tools.sh
- name: "Start Simulator"
uses: futureware-tech/simulator-action@v2
with:
model: 'iPhone 8'
- name: "Run Integration Test"
run: ./.github/workflows/scripts/integration-test.sh ios connectivity_plus_example
macos:
runs-on: macos-latest
timeout-minutes: 30
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
- 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-examples.sh macos ./lib/main.dart
macos_integration_test:
runs-on: macos-latest
timeout-minutes: 30
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
- name: "Install Flutter"
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: "Install Tools"
run: ./.github/workflows/scripts/install-tools.sh
- name: "Run Integration Test"
run: ./.github/workflows/scripts/integration-test.sh macos connectivity_plus_example
linux:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
- 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-examples.sh linux ./lib/main.dart
linux_integration_test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
- name: "Install Flutter"
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: "Install Tools"
run: ./.github/workflows/scripts/install-tools.sh
- name: "Install NetworkManager"
run: sudo apt-get update && sudo apt-get install -y network-manager
- name: "Run Integration Test"
run: ./.github/workflows/scripts/integration-test.sh linux connectivity_plus_example
windows:
runs-on: windows-latest
timeout-minutes: 30
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
- 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-examples.sh windows ./lib/main.dart
windows_integration_test:
runs-on: windows-latest
timeout-minutes: 30
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
- name: "Install Flutter"
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: "Install Tools"
run: ./.github/workflows/scripts/install-tools.sh
- name: "Run Integration Test"
run: ./.github/workflows/scripts/integration-test.sh windows connectivity_plus_example
web:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
- 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-examples.sh web ./lib/main.dart