1
+ # Name of your workflow.
2
+ name : Android Integration Tests
3
+ on :
4
+ # Trigger the workflow on push or pull request,
5
+ # but only for the main branch
6
+ push :
7
+ branches :
8
+ - master
9
+ pull_request :
10
+ branches :
11
+ - master
12
+ # A workflow run is made up of one or more jobs.
13
+ jobs :
14
+ # id of job, a string that is unique to the "jobs" node above.
15
+ android_integration_test :
16
+ # Creates a build matrix for your jobs. You can define different
17
+ # variations of an environment to run each job in.
18
+ strategy :
19
+ # A set of different configurations of the virtual
20
+ # environment.
21
+ # matrix:
22
+ # When set to true, GitHub cancels all in-progress jobs if any
23
+ # matrix job fails.
24
+ fail-fast : false
25
+ # The type of machine to run the job on.
26
+ runs-on : macOS-latest
27
+ timeout-minutes : 30
28
+ # Contains a sequence of tasks.
29
+ steps :
30
+ # The branch or tag ref that triggered the workflow will be
31
+ # checked out.
32
+ # https://github.com/actions/checkout
33
+ - uses : actions/checkout@v2
34
+ # Sets up cache
35
+ - name : Cache multiple paths
36
+ uses : actions/cache@v2
37
+ with :
38
+ path : |
39
+ ~/.pub-cache
40
+ ~/.npm
41
+ key : ${{ runner.os }}-pub-and-npm-cache
42
+ # Sets up a flutter environment.
43
+ # https://github.com/marketplace/actions/flutter-action
44
+ - name : " Install Flutter"
45
+
46
+ with :
47
+ channel : ' dev' # 'stable' or 'dev' or 'beta'
48
+ - name : " Change Flutter channel to master"
49
+ run : |
50
+ flutter channel master
51
+ flutter upgrade
52
+ - uses : actions/setup-node@v2
53
+ with :
54
+ node-version : ' 14'
55
+ - name : " Install npm dependencies"
56
+ run : |
57
+ cd ./nodejs_server_test_auth_basic_and_ssl
58
+ npm install
59
+ cd ..
60
+ - name : " Install flutter dependencies"
61
+ run : |
62
+ flutter pub get
63
+ # Sets up android emulator
64
+ - name : " Run Android Flutter Integration Test"
65
+ uses :
ReactiveCircus/[email protected]
66
+ with :
67
+ api-level : 29
68
+ target : default
69
+ avd-name : Flutter-Android
70
+ script : ./scripts/test.sh $(ipconfig getifaddr en0)
0 commit comments