forked from pichillilorenzo/flutter_inappwebview
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (70 loc) · 2.18 KB
/
android-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
# Name of your workflow.
name: Android Integration Tests
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- master
pull_request:
branches:
- master
# A workflow run is made up of one or more jobs.
jobs:
# id of job, a string that is unique to the "jobs" node above.
android_integration_tests:
# Creates a build matrix for your jobs. You can define different
# variations of an environment to run each job in.
strategy:
# A set of different configurations of the virtual
# environment.
# matrix:
# When set to true, GitHub cancels all in-progress jobs if any
# matrix job fails.
fail-fast: false
# The type of machine to run the job on.
runs-on: macOS-latest
timeout-minutes: 60
# Contains a sequence of tasks.
steps:
# The branch or tag ref that triggered the workflow will be
# checked out.
# https://github.com/actions/checkout
- uses: actions/checkout@v2
# Sets up cache
- name: Cache multiple paths
uses: actions/cache@v2
with:
path: |
~/.pub-cache
~/.npm
key: ${{ runner.os }}-pub-and-npm-cache
# Sets up a flutter environment.
# https://github.com/marketplace/actions/flutter-action
- name: "Install Flutter"
uses: subosito/[email protected]
with:
channel: 'dev' # 'stable' or 'dev' or 'beta'
- name: "Change Flutter channel to master"
run: |
flutter channel master
flutter upgrade
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: "Install npm dependencies"
run: |
cd ./nodejs_server_test_auth_basic_and_ssl
npm install
cd ..
- name: "Install flutter dependencies"
run: |
flutter pub get
# Sets up android emulator
- name: "Run Android Flutter Integration Test"
uses: ReactiveCircus/[email protected]
with:
api-level: 29
target: default
avd-name: Flutter-Android
script: ./scripts/test.sh $(ipconfig getifaddr en0)