-
Notifications
You must be signed in to change notification settings - Fork 0
185 lines (140 loc) · 4.51 KB
/
pip_video_player.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
name: pip_video_player
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
paths:
- ".github/workflows/pip_video_player.yaml"
- "pip_video_player/**"
push:
branches:
- main
paths:
- ".github/workflows/pip_video_player.yaml"
- "pip_video_player/**"
jobs:
spell-check:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/spell_check.yml@v1
with:
includes: |
**/*.md
!brick/**/*.md
.*/**/*.md
modified_files_only: false
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
flutter_channel: stable
flutter_version: 3.22.0
working_directory: pip_video_player
pana:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/pana.yml@v1
android:
runs-on: macos-latest
defaults:
run:
working-directory: pip_video_player/example
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "11"
- uses: subosito/flutter-action@v2
- name: Install Fluttium
run: flutter pub global activate fluttium_cli
- name: AVD Cache
uses: actions/cache@v3
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: fluttium test flows/test_platform_name.yaml -d android
working-directory: pip_video_player/example
ios:
runs-on: macos-latest
defaults:
run:
working-directory: pip_video_player/example
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- name: Install Fluttium
run: flutter pub global activate fluttium_cli
- 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: E2E Tests
run: fluttium test flows/test_platform_name.yaml -d iPhone
linux:
runs-on: ubuntu-latest
if: false # todo(renancaraujo): https://github.com/wolfenrain/fluttium/issues/345
defaults:
run:
working-directory: pip_video_player/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: Install Fluttium
run: flutter pub global activate fluttium_cli
- name: E2E Tests
run: xvfb-run fluttium test flows/test_platform_name.yaml -d linux
macos:
runs-on: macos-13
defaults:
run:
working-directory: pip_video_player/example
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- name: Install Fluttium
run: flutter pub global activate fluttium_cli
- name: E2E Tests
run: fluttium test flows/test_platform_name.yaml -d macos
web:
runs-on: ubuntu-latest
defaults:
run:
working-directory: pip_video_player/example
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- name: Install Fluttium
run: flutter pub global activate fluttium_cli
- name: E2E Tests
run: xvfb-run fluttium test flows/test_platform_name.yaml -d chrome
windows:
runs-on: windows-2019
defaults:
run:
working-directory: pip_video_player/example
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- name: Install Fluttium
run: flutter pub global activate fluttium_cli
- name: E2E Tests
run: fluttium test flows/test_platform_name.yaml -d windows