-
-
Notifications
You must be signed in to change notification settings - Fork 19
214 lines (159 loc) · 5.36 KB
/
oidc.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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
name: oidc
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
push:
branches:
- main
jobs:
build:
uses: ./.github/workflows/flutter_package.yaml
with:
working_directory: packages/oidc
pana:
uses: ./.github/workflows/pana.yaml
with:
min_score: 100
android:
runs-on: macos-latest
if: false # TODO: Integration tests are flaky, see https://github.com/VeryGoodOpenSource/very_good_flutter_plugin/issues/79
defaults:
run:
working-directory: packages/oidc/example
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "11"
- uses: subosito/flutter-action@v2
- name: Flutter Doctor
run: flutter doctor -v
- name: Install Melos
uses: bluefireteam/melos-action@v3
- name: AVD Cache
uses: actions/cache@v4
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-29
- name: Cache AVD Snapshot
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
script: echo "Generated AVD snapshot for caching."
- name: E2E Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: flutter test integration_test
working-directory: packages/oidc/example
ios:
runs-on: macos-latest
# disable ios due to timeout errors
if: false
defaults:
run:
working-directory: packages/oidc/example
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- name: Flutter Doctor
run: flutter doctor -v
- name: Install Melos
uses: bluefireteam/melos-action@v3
- name: Start Simulator
# Start an iPhone simulator
run: |
UDID=$(xcrun xctrace list devices | grep "^iPhone" | awk '{gsub(/[()]/,""); print $NF}' | head -n 1)
echo $UDID
xcrun simctl boot "${UDID:?No Simulator with this name found}"
- name: Integration Tests
run: flutter test integration_test -d iPhone
linux:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/oidc/example
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libx11-dev pkg-config cmake ninja-build libblkid-dev liblzma-dev
- name: Enable desktop support
run: flutter config --enable-linux-desktop
- name: Flutter Doctor
run: flutter doctor -v
- name: Install Melos
uses: bluefireteam/melos-action@v3
- name: Integration Tests
run: xvfb-run flutter test integration_test -d linux
macos:
runs-on: macos-latest
if: false # TODO: Macos tests are flaky, see https://github.com/VeryGoodOpenSource/very_good_flutter_plugin/issues/79
defaults:
run:
working-directory: packages/oidc/example
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- name: Enable desktop support
run: flutter config --enable-macos-desktop
- name: Flutter Doctor
run: flutter doctor -v
- name: Install Melos
uses: bluefireteam/melos-action@v3
- name: Integration Tests
run: flutter test integration_test -d macos
web:
runs-on: macos-latest
defaults:
run:
working-directory: packages/oidc/example
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- name: Flutter Doctor
run: flutter doctor -v
- name: Install Melos
uses: bluefireteam/melos-action@v3
- name: Run Chromedriver
uses: nanasess/setup-chromedriver@v2
- run: chromedriver --port=4444 & sleep 5
# - name: Run Chromedriver
# run: |
# git clone https://github.com/Bdaya-Dev/web_installers --branch new-chromedriver-urls
# cd web_installers/packages/web_drivers
# dart pub get
# dart lib/web_driver_installer.dart chromedriver &
# # ./chromedriver/chromedriver --port=4444 &
- name: Integration Tests
run: flutter drive -v --driver=test_driver/integration_test.dart --target=integration_test/app_test.dart -d web-server --browser-name=chrome
windows:
runs-on: windows-2019
# Melos action does not work on windows: https://github.com/bluefireteam/melos-action/issues/5
if: true
defaults:
run:
working-directory: packages/oidc/example
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- name: Enable desktop support
run: flutter config --enable-windows-desktop
- name: Flutter Doctor
run: flutter doctor -v
- name: Install Melos
uses: bluefireteam/melos-action@v3
- name: Integration Tests
run: flutter test integration_test -d windows