forked from getsentry/sentry-dart
-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (69 loc) · 2.1 KB
/
flutter_integration_test.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
name: flutter integration tests
on:
push:
branches:
- main
pull_request:
jobs:
cancel-previous-workflow:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # [email protected]
with:
access_token: ${{ github.token }}
test-android:
runs-on: macos-latest
defaults:
run:
working-directory: ./flutter/example
strategy:
matrix:
sdk: ['stable', 'beta']
steps:
- name: checkout
uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '8'
- uses: subosito/flutter-action@1e6ee87cb840500837bcd50a667fb28815d8e310 # pin@v2
with:
channel: ${{ matrix.sdk }}
- name: flutter upgrade
run: flutter upgrade
- name: flutter pub get
run: flutter pub get
- name: launch android emulator & run android integration test
uses: reactivecircus/android-emulator-runner@50986b1464923454c95e261820bc626f38490ec0 #[email protected]
with:
working-directory: ./flutter/example
api-level: 21
arch: x86_64
profile: Nexus 6
script: flutter test integration_test/integration_test.dart
test-ios:
runs-on: macos-11
defaults:
run:
working-directory: ./flutter/example
strategy:
matrix:
sdk: ['stable', 'beta']
steps:
- name: checkout
uses: actions/checkout@v3
- uses: subosito/flutter-action@1e6ee87cb840500837bcd50a667fb28815d8e310 # pin@v2
with:
channel: ${{ matrix.sdk }}
- name: flutter upgrade
run: flutter upgrade
- name: flutter pub get
run: flutter pub get
- name: launch ios emulator
uses: futureware-tech/simulator-action@ee05c113b79f056b47f354d7b313555f5491e158 #pin@v2
with:
model: 'iPhone 8'
os_version: '15.2'
- name: run ios integration test
run: flutter test integration_test/integration_test.dart