Skip to content

Commit e387679

Browse files
committed
test(e2e): split test yml files for better github integration
1 parent ec958f3 commit e387679

File tree

4 files changed

+66
-48
lines changed

4 files changed

+66
-48
lines changed
Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: e2e-native-messaging
1+
name: e2e-native-android
22

33
on:
44
pull_request:
@@ -8,7 +8,7 @@ on:
88
types: [opened, synchronize]
99

1010
jobs:
11-
android:
11+
test:
1212
runs-on: macos-latest
1313
steps:
1414
- uses: actions/checkout@v2
@@ -33,24 +33,3 @@ jobs:
3333
target: google_apis
3434
avd-name: Pixel4
3535
script: yarn detox-native-android:test
36-
37-
ios:
38-
runs-on: macos-latest
39-
steps:
40-
- uses: actions/checkout@v2
41-
- name: Use Node.js ${{ matrix.node-version }}
42-
uses: actions/setup-node@v2
43-
with:
44-
node-version: ${{ matrix.node-version }}
45-
- name: Installation & Build Package
46-
run: yarn --frozen-lockfile && cd ./examples/NativeMessaging && yarn --frozen-lockfile
47-
- name: Install Pods
48-
run: cd ./examples/NativeMessaging && npx pod-install
49-
- name: Install Detox Dependencies
50-
run: |
51-
brew tap wix/brew
52-
brew install applesimutils
53-
- name: Build
54-
run: yarn detox-native-ios:build
55-
- name: Test
56-
run: yarn detox-native-ios:test
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: e2e-native-ios
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- develop
7+
- master
8+
types: [opened, synchronize]
9+
10+
jobs:
11+
test:
12+
runs-on: macos-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- name: Installation & Build Package
20+
run: yarn --frozen-lockfile && cd ./examples/NativeMessaging && yarn --frozen-lockfile
21+
- name: Install Pods
22+
run: cd ./examples/NativeMessaging && npx pod-install
23+
- name: Install Detox Dependencies
24+
run: |
25+
brew tap wix/brew
26+
brew install applesimutils
27+
- name: Build
28+
run: yarn detox-native-ios:build
29+
- name: Test
30+
run: yarn detox-native-ios:test
Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: e2e-sample-app
1+
name: e2e-sample-android
22

33
on:
44
pull_request:
@@ -8,7 +8,7 @@ on:
88
types: [opened, synchronize]
99

1010
jobs:
11-
android:
11+
test:
1212
runs-on: macos-latest
1313
steps:
1414
- uses: actions/checkout@v2
@@ -33,26 +33,3 @@ jobs:
3333
target: google_apis
3434
avd-name: Pixel4
3535
script: yarn detox-sample-android:test
36-
37-
ios:
38-
runs-on: macos-latest
39-
steps:
40-
- uses: actions/checkout@v2
41-
- name: Use Node.js ${{ matrix.node-version }}
42-
uses: actions/setup-node@v2
43-
with:
44-
node-version: ${{ matrix.node-version }}
45-
- name: Installation & Build Package
46-
# installation already takes care of calling prepare which calls build
47-
# for the sdk package
48-
run: yarn --frozen-lockfile && yarn bootstrap-ci
49-
- name: Install Pods
50-
run: cd ./examples/SampleApp && npx pod-install
51-
- name: Install Detox Dependencies
52-
run: |
53-
brew tap wix/brew
54-
brew install applesimutils
55-
- name: Build
56-
run: yarn detox-sample-ios:build
57-
- name: Test
58-
run: yarn detox-sample-ios:test
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: e2e-sample-ios
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- develop
7+
- master
8+
types: [opened, synchronize]
9+
10+
jobs:
11+
test:
12+
runs-on: macos-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- name: Installation & Build Package
20+
# installation already takes care of calling prepare which calls build
21+
# for the sdk package
22+
run: yarn --frozen-lockfile && yarn bootstrap-ci
23+
- name: Install Pods
24+
run: cd ./examples/SampleApp && npx pod-install
25+
- name: Install Detox Dependencies
26+
run: |
27+
brew tap wix/brew
28+
brew install applesimutils
29+
- name: Build
30+
run: yarn detox-sample-ios:build
31+
- name: Test
32+
run: yarn detox-sample-ios:test

0 commit comments

Comments
 (0)