-
Notifications
You must be signed in to change notification settings - Fork 25
64 lines (62 loc) · 1.56 KB
/
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
name: Integration_tests
on:
push:
branches: [master, testing-ffi]
paths:
- "**"
- "!README.md"
pull_request:
branches: [master]
paths:
- "**"
- "!README.md"
defaults:
run:
working-directory: example
jobs:
android_test:
name: Android_test
runs-on: macos-latest
strategy:
matrix:
# api-level: [21, 23, 24, 26, 28, 29]
api-level: [33]
target: [google_apis]
steps:
- uses: actions/checkout@v4
with:
submodules: "true"
- uses: actions/setup-java@v4
with:
distribution: "zulu" # See 'Supported distributions' for available options
java-version: "17"
- uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- run: flutter pub get
- name: Run integration tests
uses: reactivecircus/android-emulator-runner@v2
with:
target: ${{ matrix.target }}
api-level: ${{ matrix.api-level }}
arch: x86_64
profile: Nexus 6
script: cd example && flutter pub get && flutter test integration_test
ios_test:
name: iOS_test
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "true"
- uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- uses: futureware-tech/simulator-action@v3
with:
os: "iOS"
- run: flutter pub get
- name: Run integration tests
run: flutter test integration_test