forked from fluttercommunity/plus_plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (53 loc) · 1.7 KB
/
android_intent_plus.yaml
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
# Build Android Intent Plus Example
name: android_intent_plus
on:
pull_request:
paths:
- "packages/android_intent_plus/**"
- ".github/workflows/android_intent_plus.yaml"
- "!**.md"
- "!**.gitignore"
env:
PLUGIN_SCOPE: "*android_intent_plus*"
PLUGIN_EXAMPLE_SCOPE: "*android_intent_example*"
jobs:
android_build:
runs-on: macos-latest
timeout-minutes: 30
steps:
- name: "Checkout repository"
uses: actions/checkout@v2
- name: "Install Flutter"
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: "Install Tools"
run: ./.github/workflows/scripts/install-tools.sh
# Required for Android builds
- uses: actions/setup-java@v1
with:
java-version: '11'
- name: "Build Example"
run: ./.github/workflows/scripts/build-examples.sh android ./lib/main.dart
android_integration_test:
runs-on: macos-latest
timeout-minutes: 30
steps:
- name: "Checkout repository"
uses: actions/checkout@v2
- name: "Install Flutter"
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: "Install Tools"
run: ./.github/workflows/scripts/install-tools.sh
# Required for Android builds
- uses: actions/setup-java@v1
with:
java-version: '11'
- name: "Bootstrap Workspace"
run: melos bootstrap
- name: "Android Integration Test"
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 30
arch: x86_64
target: google_apis
profile: Nexus 5X
script: ./.github/workflows/scripts/integration-test.sh android android_intent_example