-
-
Notifications
You must be signed in to change notification settings - Fork 21
663 lines (568 loc) · 23.5 KB
/
check-flutter-integration-tests.yml
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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
on:
# pull_request:
# branches: [ main ]
# push:
workflow_dispatch:
name: Flutter Integration Tests
env:
NDK_VERSION: 25.2.9519653
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run_checker:
runs-on: ubuntu-latest
name: Check legibility
outputs:
should_run_all: ${{steps.PR.outputs.pr_found == 'true' && contains(steps.PR.outputs.pr_labels, 'ci-test-ui-all')}}
should_run_desktop: ${{steps.PR.outputs.pr_found == 'true' && contains(steps.PR.outputs.pr_labels, 'ci-test-ui-desktop')}}
should_run_emulator: ${{steps.PR.outputs.pr_found == 'true' && contains(steps.PR.outputs.pr_labels, 'ci-test-ui-emulators')}}
should_run_ios: ${{steps.PR.outputs.pr_found == 'true' && contains(steps.PR.outputs.pr_labels, 'ci-test-ui-ios')}}
should_run_android: ${{steps.PR.outputs.pr_found == 'true' && contains(steps.PR.outputs.pr_labels, 'ci-test-ui-android')}}
steps:
- uses: 8BitJonny/[email protected]
id: PR
with:
# Verbose setting SHA when using Pull_Request event trigger to fix #16. (For push even trigger this is not necessary.)
sha: ${{ github.event.pull_request.head.sha }}
# Only return if PR is still open. (By default it returns PRs in any state.)
filterOutClosed: true
# Only return if PR is not in draft state. (By default it returns PRs in any state.)
# filterOutDraft: true
- run: echo "PR $prNumber $prTitle at $prUrl is labeled $prLabels. It should run a demo build; $contains"
if: steps.PR.outputs.pr_found == 'true'
env:
# Direct access to common PR properties
prNumber: ${{ steps.PR.outputs.number }}
prUrl: ${{ steps.PR.outputs.pr_url }}
prTitle: ${{ steps.PR.outputs.pr_title }}
prBody: ${{ steps.PR.outputs.pr_body }}
prCreatedAt: ${{ steps.PR.outputs.pr_created_at }}
prMergedAt: ${{ steps.PR.outputs.pr_merged_at }}
prClosedAt: ${{ steps.PR.outputs.pr_closed_at }}
prLabels: ${{ steps.PR.outputs.pr_labels }}
contains: ${{ contains(steps.PR.outputs.pr_labels, 'ci-test-ui') }}
# flutter-desktop:
# runs-on: ubuntu-latest
# name: Flutter Desktop
# continue-on-error: true
# needs:
# - run_checker
# if: ${{ github.ref == 'refs/heads/main' || needs.run_checker.outputs.should_run_all != 'false' || needs.run_checker.outputs.should_run_desktop != 'false' }}
# steps:
# - uses: actions/checkout@v4
# - name: Install extra deps
# run: |
# sudo apt-get update -y
# sudo apt-get install -y libgtk-3-dev libx11-dev pkg-config cmake ninja-build libblkid-dev liblzma-dev
# sudo apt install -y dbus-x11 network-manager upower mpv libmpv-dev
# - name: Install supported toolchain
# uses: actions-rust-lang/setup-rust-toolchain@v1
# - name: Install cargo-make
# uses: davidB/rust-cargo-make@v1
# - uses: subosito/flutter-action@v2
# name: Set up flutter
# with:
# flutter-version: '3.24'
# channel: 'stable'
# - uses: actions/setup-python@v4
# with:
# python-version: 3.8
# - uses: michaelkaye/setup-matrix-synapse@main
# with:
# installer: poetry
# uploadLogs: true
# httpPort: 8118
# disableRateLimiting: true
# customModules: synapse_super_invites
# customConfig: |
# modules:
# - module: "synapse_super_invites.SynapseSuperInvites"
# config:
# sql_url: "sqlite://"
# generate_registration_token: true
# - name: Install & Run MailHog
# run: |
# wget -q https://github.com/mailhog/MailHog/releases/download/v1.0.1/MailHog_linux_amd64
# sudo chmod +x MailHog_linux_amd64
# ./MailHog_linux_amd64 &
# - name: Enable Linux Desktop
# run: flutter config --enable-linux-desktop
# - name: Build Native
# run: cargo make desktop
# - name: Flutter setup
# working-directory: app
# run: flutter pub get
# - name: Open Keyring
# uses: t1m0thyj/unlock-keyring@v1
# - name: Run flutter integration tests
# working-directory: app
# run: |
# export DISPLAY=:99
# sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
# xvfb_pid=$!
# flutter run integration_test/main_test.dart \
# -d linux \
# --hot \
# --host-vmservice-port 9753 \
# --disable-service-auth-codes \
# --dart-define CI=true \
# --dart-define CONVENIENT_TEST_APP_CODE_DIR=lib \
# --dart-define DEFAULT_HOMESERVER_URL=http://localhost:8118/ \
# --dart-define DEFAULT_HOMESERVER_NAME=localhost \
# --dart-define RAGESHAKE_URL=http://localhost:9110/api/submit \
# --dart-define MAILHOG_URL=http://localhost:8025 \
# --dart-define RAGESHAKE_LISTING_URL=http://localhost:9110/api/listing \
# --dart-define DEFAULT_HOMESERVER_URL=http://localhost:8118 \
# --dart-define DEFAULT_HOMESERVER_NAME=localhost \
# &
# subscript_pid=$!
# # actual manager runner
# dart run convenient_test_manager_dart --enable-report-saver
# exit_status=$?
# kill "$xvfb_pid" "$subscript_pid"
# exit exit_status
# - name: Upload artifacts
# uses: actions/upload-artifact@v1
# if: failure()
# with:
# name: linux-desktop-convtest-report
# path: /tmp/ConvenientTest/
# # file an error if this failed on `main` post-merge
# - name: Report issue
# if: ${{ github.ref == 'refs/heads/main' && failure() }}
# uses: JasonEtco/create-an-issue@v2
# env:
# GITHUB_TOKEN: ${{ github.token }}
# TITLE: "Desktop integration tests failed on main"
# FAILED_RUN_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs/${{ github.job }}
# ARTIFACT_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
# with:
# assignees: gnunicorn
# filename: .github/templates/failure-report-template.md.tmpl
# update_existing: true
# flutter-ios:
# runs-on: macos-latest
# environment: release
# name: iOS
# needs:
# - run_checker
# if: ${{ github.ref == 'refs/heads/main' || needs.run_checker.outputs.should_run_ios != 'false' || needs.run_checker.outputs.should_run_emulator != 'false' || needs.run_checker.outputs.should_run_all != 'false' }}
# continue-on-error: true
# steps:
# - uses: actions/checkout@v4
# - name: Install supported toolchain
# uses: actions-rust-lang/setup-rust-toolchain@v1
# - name: Install cargo-make
# uses: davidB/rust-cargo-make@v1
# - name: Rust iOS Setup
# run: cargo make setup-ios
# - name: Unlock git-crypt
# run: |
# brew install git-crypt
# echo "${{ secrets.GIT_CRYPT_KEY }}" | base64 --decode > .github/assets/git-crypt-key
# git-crypt unlock .github/assets/git-crypt-key
# echo "Files found:"
# git-crypt status -e
# # Install the Apple certificate and provisioning profile
# - name: Install the Apple certificates
# env:
# P12_PASSWORD: ${{ secrets.BUILD_CERTS_P12_PASSWORD }}
# KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
# run: |
# echo "starting in $RUNNER_TEMP"
# # create variables
# CERTIFICATE_PATH=".github/assets/build_certificates.p12"
# KEYCHAIN_PATH="$RUNNER_TEMP/app-signing.keychain-db"
# echo "vars set"
# # import certificate and provisioning profile from secrets
# # create temporary keychain
# echo "creating keychain"
# security create-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH"
# echo "setting keychain"
# security set-keychain-settings -lut 21600 "$KEYCHAIN_PATH"
# echo "unlocking keychain"
# security unlock-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH"
# # import certificate to keychain
# echo "importing certificate"
# security import "$CERTIFICATE_PATH" -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k "$KEYCHAIN_PATH"
# echo "listing keychains"
# security list-keychain -d user -s "$KEYCHAIN_PATH"
# - name: Install the Apple provisioning profile
# run: |
# echo "Installing provision profiles"
# mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles/
# cp .github/assets/provision_profiles/* ~/Library/MobileDevice/Provisioning\ Profiles/
# ls -ltas ~/Library/MobileDevice/Provisioning\ Profiles/
# - uses: subosito/flutter-action@v2
# name: Set up flutter
# with:
# flutter-version: '3.24'
# channel: 'stable'
# - uses: actions/setup-python@v4
# with:
# python-version: 3.8
# - uses: michaelkaye/setup-matrix-synapse@main
# with:
# uploadLogs: true
# httpPort: 8118
# disableRateLimiting: true
# customModules: synapse_super_invites
# customConfig: |
# modules:
# - module: "synapse_super_invites.SynapseSuperInvites"
# config:
# sql_url: "sqlite://"
# generate_registration_token: true
# - name: Install & Run MailHog
# run: |
# wget -q https://github.com/mailhog/MailHog/releases/download/v1.0.1/MailHog_linux_amd64
# sudo chmod +x MailHog_linux_amd64
# ./MailHog_linux_amd64 &
# - name: Build Native
# run: cargo make --profile release ios-sim
# - uses: futureware-tech/simulator-action@v3
# id: ios_simulator
# timeout-minutes: 30
# with:
# model: 'iPhone 14'
# - name: Flutter setup
# working-directory: app
# run: |
# flutter pub get
# - name: Run flutter integration tests
# timeout-minutes: 30
# run: .github/scripts/flutter-integration-tests.sh
# - name: Upload artifacts
# uses: actions/upload-artifact@v1
# if: failure()
# with:
# name: ios-convtest-report
# path: /tmp/ConvenientTest/
# # file an error if this failed on `main` post-merge
# - name: Report issue
# if: ${{ github.ref == 'refs/heads/main' && failure() }}
# uses: JasonEtco/create-an-issue@v2
# env:
# GITHUB_TOKEN: ${{ github.token }}
# TITLE: "iOS integration tests failed on main"
# FAILED_RUN_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs/${{ github.job }}
# ARTIFACT_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
# with:
# assignees: gnunicorn
# filename: .github/templates/failure-report-template.md.tmpl
# update_existing: true
# - name: Clean up keychain and provisioning profile
# if: ${{ always() }}
# run: |
# security delete-keychain $RUNNER_TEMP/app-signing.keychain-db
# rm ~/Library/MobileDevice/Provisioning\ Profiles/*
# rm .github/assets/git-crypt-key
android-build:
# added to build the android only once and then cache it for the actual tests runs
runs-on: ubuntu-latest
name: Android build
# if: ${{ github.ref == 'refs/heads/main' || needs.run_checker.outputs.should_run_android != 'false' || needs.run_checker.outputs.should_run_emulator != 'false' || needs.run_checker.outputs.should_run_all != 'false' }}
needs:
- run_checker
steps:
- uses: actions/checkout@v4
- name: Install supported toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: subosito/flutter-action@v2
name: Set up flutter
with:
flutter-version: '3.24'
channel: 'stable'
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: gradle
- name: Install cargo-make
uses: davidB/rust-cargo-make@v1
- name: Rust Android Setup
run: cargo make setup-android
- name: Install NDK $NDK_VERSION
run: |
ANDROID_ROOT=/usr/local/lib/android
ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk
SDKMANAGER=${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager
echo "y" | $SDKMANAGER "ndk;$NDK_VERSION"
echo "Installed $NDK_VERSION"
ls /usr/local/lib/android/sdk/ndk/$NDK_VERSION
- name: Build Native
run: |
export ANDROID_NDK_HOME=/usr/local/lib/android/sdk/ndk/$NDK_VERSION
ls $ANDROID_NDK_HOME
cargo make android-dev
android:
runs-on: ubuntu-latest
name: Android
needs:
- android-build
continue-on-error: true
strategy:
matrix:
api_level: [34]
tests: ["Auth", "Updates", "Events", "Subspace", "SuperInvites", "Tasks", "Pins", "Attachments"] # "Bug Reporting", disabled as it needs a rageshake server
include:
- api_level: 23 # MinimalSDK version Smoke Test
tests: "Smoke"
steps:
- uses: actions/checkout@v4
- name: Install supported toolchain
id: rust_toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: jlumbroso/free-disk-space@main
name: Free Disk Space (Ubuntu)
with:
tool-cache: true
android: false
- name: Cache Cargo
id: cache-cargo
uses: actions/cache@v4
with:
path: |
~/.cargo
key: ubuntu-latest-cargo-${{ steps.rust_toolchain.outputs.rustc_hash }}-${{ hashFiles('./Cargo.toml') }}
- name: Cache Rust
uses: actions/cache@v4
with:
path: |
target
key: ubuntu-latest-android-${{ steps.rust_toolchain.outputs.rustc_hash }}-${{ hashFiles('./Cargo.toml') }}
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: gradle
- name: Install cargo-make
if: steps.cache-cargo.outputs.cache-hit != 'true'
uses: davidB/rust-cargo-make@v1
- name: Rust Android Setup
run: cargo make setup-android
- name: Install NDK $NDK_VERSION
run: |
ANDROID_ROOT=/usr/local/lib/android
ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk
SDKMANAGER=${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager
echo "y" | $SDKMANAGER "ndk;$NDK_VERSION"
echo "Installed $NDK_VERSION"
ls /usr/local/lib/android/sdk/ndk/$NDK_VERSION
- uses: subosito/flutter-action@v2
name: Set up flutter
with:
flutter-version: '3.24'
channel: 'stable'
- uses: actions/setup-python@v4
with:
python-version: 3.8
- uses: michaelkaye/setup-matrix-synapse@main
with:
uploadLogs: true
httpPort: 8118
disableRateLimiting: true
customModules: synapse_super_invites
customConfig: |
email:
smtp_host: localhost
smtp_port: 1025
force_tls: false
require_transport_security: false
enable_tls: false
notif_from: "Your Friendly %(app)s homeserver <[email protected]>"
can_verify_email: true
modules:
- module: "synapse_super_invites.SynapseSuperInvites"
config:
sql_url: "sqlite://"
generate_registration_token: true
- name: Install & Run MailHog
run: |
wget -q https://github.com/mailhog/MailHog/releases/download/v1.0.1/MailHog_linux_amd64
sudo chmod +x MailHog_linux_amd64
./MailHog_linux_amd64 &
- name: Build Native
run: |
export ANDROID_NDK_HOME=/usr/local/lib/android/sdk/ndk/$NDK_VERSION
cargo make android-dev
- name: Flutter setup
working-directory: app
run: flutter pub get
- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Gradle cache
uses: gradle/actions/setup-gradle@v3
- name: AVD cache
uses: actions/cache@v4
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{matrix.api_level}}
- name: Generate env
working-directory: ./app
run: dart run enven
- name: Write environment
working-directory: ./app
shell: bash
run: |
cat <<EOF > .env.production
RAGESHAKE_URL=http://10.0.2.2:9110/api/listing
RAGESHAKE_APP_NAME=acter-ci
DEFAULT_HOMESERVER_URL=http://10.0.2.2:8118
DEFAULT_HOMESERVER_NAME=10.0.2.2
isCI=true
EOF
dart run enven
echo "Show .env files"
ls -ltash .env*
# - name: create AVD and generate snapshot for caching
# if: steps.avd-cache.outputs.cache-hit != 'true'
# uses: reactivecircus/android-emulator-runner@v2
# with:
# api-level: 28
# arch: x86_64
# profile: Nexus 6
# 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: Run integration tests on android
uses: reactivecircus/android-emulator-runner@v2
timeout-minutes: 60
with:
api-level: ${{matrix.api_level}}
arch: x86_64
profile: Nexus 6
force-avd-creation: false
# emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
emulator-build: 7425822 # workaround to emulator bug: https://github.com/ReactiveCircus/android-emulator-runner/issues/160
script: |
adb root
adb logcat -c
touch emulator.log
chmod 777 emulator.log
adb logcat >> emulator.log &
./.github/scripts/flutter-integration-tests.sh --run-only "${{matrix.tests}}"
- name: Upload artifacts
uses: actions/upload-artifact@v1
if: failure()
with:
name: android-convtest-report-${{matrix.api_level}}-${{matrix.tests}}
path: |
emulator.log
/tmp/ConvenientTest/
# file an error if this failed on `main` post-merge
- name: Report issue
if: ${{ github.ref == 'refs/heads/main' && failure() }}
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ github.token }}
TITLE: "Android integration tests failed on main"
FAILED_RUN_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs/${{ github.job }}
ARTIFACT_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
with:
assignees: gnunicorn
filename: .github/templates/failure-report-template.md.tmpl
update_existing: true
# flutter-android:
# runs-on: macos-latest
# name: Android
# needs:
# - run_checker
# if: ${{ github.ref == 'refs/heads/main' || needs.run_checker.outputs.should_run_android != 'false' || needs.run_checker.outputs.should_run_emulator != 'false' || needs.run_checker.outputs.should_run_all != 'false' }}
# continue-on-error: true
# steps:
# - uses: actions/checkout@v4
# - name: Install supported toolchain
# id: rust_toolchain
# uses: actions-rust-lang/setup-rust-toolchain@v1
# - name: Cache Cargo
# id: cache-cargo
# uses: actions/cache@v4
# with:
# path: |
# ~/.cargo
# key: macos-latest-cargo-${{ steps.rust_toolchain.outputs.rustc_hash }}-${{ hashFiles('./Cargo.toml') }}
# - uses: actions/setup-java@v4
# with:
# distribution: 'temurin'
# java-version: '17'
# - name: Install cargo-make
# if: steps.cache-cargo.outputs.cache-hit != 'true'
# uses: davidB/rust-cargo-make@v1
# - name: Rust Android Setup
# run: cargo make setup-android
# - uses: nttld/setup-ndk@v1
# id: setup-ndk
# with:
# ndk-version: r25
# - uses: subosito/flutter-action@v2
# name: Set up flutter
# with:
# flutter-version: '3.24'
# channel: 'stable'
# - uses: actions/setup-python@v4
# with:
# python-version: 3.8
# - uses: michaelkaye/setup-matrix-synapse@main
# with:
# uploadLogs: true
# httpPort: 8118
# disableRateLimiting: true
# customModules: synapse_super_invites
# customConfig: |
# modules:
# - module: "synapse_super_invites.SynapseSuperInvites"
# config:
# sql_url: "sqlite://"
# generate_registration_token: true
# - name: Install & Run MailHog
# run: |
# wget -q https://github.com/mailhog/MailHog/releases/download/v1.0.1/MailHog_linux_amd64
# sudo chmod +x MailHog_linux_amd64
# ./MailHog_linux_amd64 &
# - name: Build Native
# run: cargo make android-dev
# - name: Flutter setup
# working-directory: app
# run: flutter pub get
# - name: Run integration tests on android
# uses: reactivecircus/android-emulator-runner@v2
# timeout-minutes: 30
# with:
# api-level: 28
# arch: x86
# profile: Nexus 5X
# force-avd-creation: false
# emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
# disable-animations: true
# emulator-build: 7425822
# script: .github/scripts/flutter-integration-tests.sh
# - name: Upload artifacts
# uses: actions/upload-artifact@v1
# if: failure()
# with:
# name: android-convtest-report
# path: /tmp/ConvenientTest/
# # file an error if this failed on `main` post-merge
# - name: Report issue
# if: ${{ github.ref == 'refs/heads/main' && failure() }}
# uses: JasonEtco/create-an-issue@v2
# env:
# GITHUB_TOKEN: ${{ github.token }}
# TITLE: "Android integration tests failed on main"
# FAILED_RUN_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs/${{ github.job }}
# ARTIFACT_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
# with:
# assignees: gnunicorn
# filename: .github/templates/failure-report-template.md.tmpl
# update_existing: true