This repository has been archived by the owner on Aug 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
88 lines (84 loc) · 2.46 KB
/
android_ci_upgrade.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
name: CI
on:
push:
branches:
- main
- develop
- release/*
pull_request:
branches:
- main
- develop
- release/*
workflow_dispatch:
jobs:
build-macos-android-23:
name: Flutter Run test on android 23
runs-on: macos-12
env:
FLUTTER_VERSION: "3.0.3"
ANDROID_SDK_ROOT: "/Users/runner/android-sdk"
ANDROID_HOME: "~/.android"
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Set up Java
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'zulu'
- name: Set up Flutter version 🔧
uses: ./.github/actions/flutter-action
with:
flutter-version: $FLUTTER_VERSION
- name: Fetch dependencies
run: |
flutter pub get
- name: Set up android enviroment
run: |
./scripts/macos_setup_android_env.sh
- name: Configure sdkmanager
run: |
./scripts/macos_configure-sdkmanager.sh 32 32.0.0 "android-23;default;x86"
- name: Run android integration tests
run: |
./scripts/run-mocked-integration-tests-android.sh "android-23;default;x86"
build-macos-android-27:
name: Flutter Run test on android 27
runs-on: macos-12
env:
FLUTTER_VERSION: "3.0.3"
ANDROID_SDK_ROOT: "/Users/runner/android-sdk"
ANDROID_HOME: "~/.android"
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Set up Java
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'zulu'
- name: Set up Flutter version 🔧
uses: ./.github/actions/flutter-action
with:
flutter-version: $FLUTTER_VERSION
- name: Fetch dependencies
run: |
flutter pub get
- name: Set up android enviroment
run: |
./scripts/macos_setup_android_env.sh
- name: Configure sdkmanager
run: |
./scripts/macos_configure-sdkmanager.sh 32 32.0.0 "android-23;default;x86"
- name: Run android integration tests
run: |
./scripts/run-mocked-integration-tests-android.sh "android-23;default;x86"