-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.5 KB
/
ios.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
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
name: Integration test (iOS)
jobs:
build:
# See: https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
strategy:
matrix:
model: [ 'iPhone 14' ]
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: subosito/[email protected]
with:
channel: stable
- name: Flutter doctor
run: flutter doctor -v
- name: Flutter pub get
run: flutter pub get && flutter pub get -C generator
- name: Flutter analyze
run: flutter analyze
# - name: Flutter build
# run: cd example && flutter build ipa --release --obfuscate --split-debug-info=symbols --no-codesign
# See: https://github.com/flutter/flutter/issues/105913
- name: Pre-build for integration test
run: cd example && flutter build ios --debug --simulator
# See: https://github.com/marketplace/actions/launch-ios-simulator
- name: Launch iOS simulator
uses: futureware-tech/simulator-action@v2
with:
model: ${{ matrix.model }}
- name: Flutter integration test
run: cd example && flutter test && flutter test integration_test
# - uses: actions/upload-artifact@v3
# with:
# name: artifacts-android
# path: |
# ${{ github.workspace }}/example/symbols
# ${{ github.workspace }}/example/build