Skip to content

Commit 46876c0

Browse files
committed
fix android simulator not being able to connect issue
1 parent e8fa035 commit 46876c0

File tree

1 file changed

+42
-9
lines changed

1 file changed

+42
-9
lines changed

.github/workflows/node.js.yml

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,24 @@ on:
1010
branches: [ master ]
1111

1212
jobs:
13-
build:
14-
13+
test_main_code:
1514
runs-on: macos-latest
15+
strategy:
16+
matrix:
17+
node-version: [15.x]
18+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v2
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
- run: npm install
27+
- run: npm test
1628

29+
test_android:
30+
runs-on: macos-11
1731
strategy:
1832
matrix:
1933
node-version: [15.x]
@@ -30,12 +44,6 @@ jobs:
3044
- name: Test Integration - Install dependencies
3145
working-directory: ./MixpanelDemo
3246
run: yarn install
33-
- name: Setup iOS
34-
working-directory: ./MixpanelDemo/ios
35-
run: pod install
36-
- name: Test iOS
37-
working-directory: ./MixpanelDemo
38-
run: yarn ios
3947
- name: Setup Android
4048
uses: reactivecircus/android-emulator-runner@v2
4149
with:
@@ -44,4 +52,29 @@ jobs:
4452
script: ./gradlew connectedCheck
4553
- name: Test Android
4654
working-directory: ./MixpanelDemo
47-
run: yarn android
55+
run: yarn android
56+
57+
test_ios:
58+
runs-on: macos-latest
59+
strategy:
60+
matrix:
61+
node-version: [15.x]
62+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
63+
steps:
64+
- name: Checkout
65+
uses: actions/checkout@v2
66+
- name: Use Node.js ${{ matrix.node-version }}
67+
uses: actions/setup-node@v2
68+
with:
69+
node-version: ${{ matrix.node-version }}
70+
- run: npm install
71+
- name: Test Integration - Install dependencies
72+
working-directory: ./MixpanelDemo
73+
run: yarn install
74+
- name: Setup iOS
75+
working-directory: ./MixpanelDemo/ios
76+
run: pod install
77+
- name: Test iOS
78+
working-directory: ./MixpanelDemo
79+
run: yarn ios
80+

0 commit comments

Comments
 (0)