Skip to content

Commit 27d045f

Browse files
github workflow splitted
1 parent 3d10785 commit 27d045f

File tree

3 files changed

+139
-125
lines changed

3 files changed

+139
-125
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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+
uses: subosito/[email protected]
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)

.github/workflows/flutter-drive.yml

-125
This file was deleted.
+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Name of your workflow.
2+
name: iOS 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+
ios_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+
# A name for your step to display on GitHub.
31+
- name: "Start Simulator"
32+
run: |
33+
xcrun simctl list
34+
xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-12 com.apple.CoreSimulator.SimRuntime.iOS-14-3 | xargs xcrun simctl boot
35+
# The branch or tag ref that triggered the workflow will be
36+
# checked out.
37+
# https://github.com/actions/checkout
38+
- uses: actions/checkout@v2
39+
# Sets up cache
40+
- name: Cache multiple paths
41+
uses: actions/cache@v2
42+
with:
43+
path: |
44+
~/.pub-cache
45+
~/.npm
46+
key: ${{ runner.os }}-pub-and-npm-cache
47+
# Sets up a flutter environment.
48+
# https://github.com/marketplace/actions/flutter-action
49+
- name: "Install Flutter"
50+
uses: subosito/[email protected]
51+
with:
52+
channel: 'dev' # 'stable' or 'dev' or 'beta'
53+
- name: "Change Flutter channel to master"
54+
run: |
55+
flutter channel master
56+
flutter upgrade
57+
- uses: actions/setup-node@v2
58+
with:
59+
node-version: '14'
60+
- name: "Install npm dependencies"
61+
run: |
62+
cd ./nodejs_server_test_auth_basic_and_ssl
63+
npm install
64+
cd ..
65+
- name: "Run iOS Flutter Integration Test"
66+
run: |
67+
flutter pub get
68+
flutter devices
69+
./scripts/test.sh $(ipconfig getifaddr en0)

0 commit comments

Comments
 (0)