Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/e2e finalisation #1350

Merged
merged 7 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/e2e-harness-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
# - '**/metadata.json'
# - '**/renative.json'
# - '**/package.json'
pull_request:
types: [labeled]
# pull_request:
# types: [labeled]

jobs:
e2e-harness-android:
Expand All @@ -31,12 +31,12 @@ jobs:
- name: Bootstrap
run: |
yarn bootstrap-clean
- name: Build
- name: Run
run: |
cd packages/app-harness && yarn build:android-test
cd packages/app-harness && yarn run:android-test & sleep 180
- name: E2E
run: |
cd packages/app-harness && yarn e2e:android
cd packages/app-harness && yarn e2e:android && kill $(lsof -t -i:8083)
# Commented because e2e tests would fail due to minion issues
# - name: Post message to Slack via Webhook
# if: ${{ github.event_name == 'push' && failure() }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/e2e-harness-androidtv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
# - '**/metadata.json'
# - '**/renative.json'
# - '**/package.json'
pull_request:
types: [labeled]
# pull_request:
# types: [labeled]

jobs:
e2e-harness-androidtv:
Expand All @@ -31,12 +31,12 @@ jobs:
- name: Bootstrap
run: |
yarn bootstrap-clean
- name: Build
- name: Run
run: |
cd packages/app-harness && yarn build:androidtv-test
cd packages/app-harness && yarn run:androidtv-test & sleep 180
- name: E2E
run: |
cd packages/app-harness && yarn e2e:androidtv
cd packages/app-harness && yarn e2e:androidtv && kill $(lsof -t -i:8084)
# Commented because e2e tests would fail due to minion issues
# - name: Post message to Slack via Webhook
# if: ${{ github.event_name == 'push' && failure() }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/e2e-harness-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
# - '**/metadata.json'
# - '**/renative.json'
# - '**/package.json'
pull_request:
types: [labeled]
# pull_request:
# types: [labeled]

jobs:
e2e-harness-ios:
Expand All @@ -32,12 +32,12 @@ jobs:
- name: Bootstrap
run: |
yarn bootstrap-clean
- name: Build
- name: Run
run: |
cd packages/app-harness && yarn build:ios-test
cd packages/app-harness && yarn run:ios-test & sleep 1200
- name: E2E
run: |
cd packages/app-harness && yarn e2e:ios
cd packages/app-harness && yarn e2e:ios && kill $(lsof -t -i:8082)
# Commented because e2e tests would fail due to minion issues
# - name: Post message to Slack via Webhook
# if: ${{ github.event_name == 'push' && failure() }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-harness-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
# - '**/metadata.json'
# - '**/renative.json'
# - '**/package.json'
pull_request:
types: [labeled]
# pull_request:
# types: [labeled]

jobs:
e2e-harness-macos:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/e2e-harness-tvos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
# - '**/metadata.json'
# - '**/renative.json'
# - '**/package.json'
pull_request:
types: [labeled]
# pull_request:
# types: [labeled]

jobs:
e2e-harness-tvos:
Expand All @@ -32,12 +32,12 @@ jobs:
- name: Bootstrap
run: |
yarn bootstrap-clean
- name: Build
- name: Run
run: |
cd packages/app-harness && yarn build:tvos-test
cd packages/app-harness && yarn run:tvos-test & sleep 1200
- name: E2E
run: |
cd packages/app-harness && yarn e2e:tvos
cd packages/app-harness && yarn e2e:tvos && kill $(lsof -t -i:8089)
# Commented because e2e tests would fail due to minion issues
# - name: Post message to Slack via Webhook
# if: ${{ github.event_name == 'push' && failure() }}
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/e2e-harness-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ defaults:
shell: zsh -l {0}
on:
workflow_dispatch:
# push:
# branches:
# - main
# - 'release/**'
# paths-ignore:
# - 'docs/**'
# - '**/README.md'
# - '**/lerna.json'
# - '**/metadata.json'
# - '**/renative.json'
# - '**/package.json'
push:
branches:
- main
- 'release/**'
paths-ignore:
- 'docs/**'
- '**/README.md'
- '**/lerna.json'
- '**/metadata.json'
- '**/renative.json'
- '**/package.json'
pull_request:
types: [labeled]

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/e2e-template-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
# - '**/metadata.json'
# - '**/renative.json'
# - '**/package.json'
pull_request:
types: [labeled]
# pull_request:
# types: [labeled]

jobs:
e2e-template-android:
Expand All @@ -31,12 +31,12 @@ jobs:
- name: Bootstrap
run: |
yarn bootstrap-clean
- name: Build
- name: Run
run: |
cd packages/template-starter && yarn build:android-test
cd packages/template-starter && yarn run:android-test & sleep 180
- name: E2E
run: |
cd packages/template-starter && yarn e2e:android
cd packages/template-starter && yarn e2e:android && kill $(lsof -t -i:8083)
# Commented because e2e tests would fail due to minion issues
# - name: Post message to Slack via Webhook
# if: ${{ github.event_name == 'push' && failure() }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/e2e-template-androidtv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
# - '**/metadata.json'
# - '**/renative.json'
# - '**/package.json'
pull_request:
types: [labeled]
# pull_request:
# types: [labeled]

jobs:
e2e-template-androidtv:
Expand All @@ -31,12 +31,12 @@ jobs:
- name: Bootstrap
run: |
yarn bootstrap-clean
- name: Build
- name: Run
run: |
cd packages/template-starter && yarn build:androidtv-test
cd packages/template-starter && yarn run:androidtv-test & sleep 180
- name: E2E
run: |
cd packages/template-starter && yarn e2e:androidtv
cd packages/template-starter && yarn e2e:androidtv && kill $(lsof -t -i:8084)
# Commented because e2e tests would fail due to minion issues
# - name: Post message to Slack via Webhook
# if: ${{ github.event_name == 'push' && failure() }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/e2e-template-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
# - '**/metadata.json'
# - '**/renative.json'
# - '**/package.json'
pull_request:
types: [labeled]
# pull_request:
# types: [labeled]

jobs:
e2e-template-ios:
Expand All @@ -32,12 +32,12 @@ jobs:
- name: Bootstrap
run: |
yarn bootstrap-clean
- name: Build
- name: Run
run: |
cd packages/template-starter && yarn build:ios-test
cd packages/template-starter && yarn run:ios-test & sleep 1200
- name: E2E
run: |
cd packages/template-starter && yarn e2e:ios
cd packages/template-starter && yarn e2e:ios && kill $(lsof -t -i:8082)
# Commented because e2e tests would fail due to minion issues
# - name: Post message to Slack via Webhook
# if: ${{ github.event_name == 'push' && failure() }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-template-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
# - '**/metadata.json'
# - '**/renative.json'
# - '**/package.json'
pull_request:
types: [labeled]
# pull_request:
# types: [labeled]

jobs:
e2e-template-macos:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/e2e-template-tvos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
# - '**/metadata.json'
# - '**/renative.json'
# - '**/package.json'
pull_request:
types: [labeled]
# pull_request:
# types: [labeled]

jobs:
e2e-template-tvos:
Expand All @@ -32,12 +32,12 @@ jobs:
- name: Bootstrap
run: |
yarn bootstrap-clean
- name: Build
- name: Run
run: |
cd packages/template-starter && yarn build:tvos-test
cd packages/template-starter && yarn run:tvos-test & sleep 1200
- name: E2E
run: |
cd packages/template-starter && yarn e2e:tvos
cd packages/template-starter && yarn e2e:tvos && kill $(lsof -t -i:8089)
# Commented because e2e tests would fail due to minion issues
# - name: Post message to Slack via Webhook
# if: ${{ github.event_name == 'push' && failure() }}
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/e2e-template-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ defaults:
shell: zsh -l {0}
on:
workflow_dispatch:
# push:
# branches:
# - main
# - 'release/**'
# paths-ignore:
# - 'docs/**'
# - '**/README.md'
# - '**/lerna.json'
# - '**/metadata.json'
# - '**/renative.json'
# - '**/package.json'
push:
branches:
- main
- 'release/**'
paths-ignore:
- 'docs/**'
- '**/README.md'
- '**/lerna.json'
- '**/metadata.json'
- '**/renative.json'
- '**/package.json'
pull_request:
types: [labeled]

Expand Down
12 changes: 6 additions & 6 deletions packages/app-harness/appConfigs/base/renative.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
},
"test": {
"runScheme": "Debug",
"bundleAssets": true,
"bundleAssets": false,
"sdk": "iphonesimulator"
},
"release": {
Expand All @@ -100,7 +100,7 @@
},
"test": {
"runScheme": "Debug",
"bundleAssets": true,
"bundleAssets": false,
"sdk": "appletvsimulator"
},
"release": {
Expand Down Expand Up @@ -154,7 +154,7 @@
},
"test": {
"signingConfig": "Debug",
"bundleAssets": true
"bundleAssets": false
},
"canary": {
"signingConfig": "Release",
Expand Down Expand Up @@ -187,7 +187,7 @@
},
"test": {
"signingConfig": "Debug",
"bundleAssets": true
"bundleAssets": false
},
"release": {
"signingConfig": "Release",
Expand All @@ -214,7 +214,7 @@
},
"test": {
"signingConfig": "Debug",
"bundleAssets": true
"bundleAssets": false
},
"release": {
"signingConfig": "Release",
Expand All @@ -241,7 +241,7 @@
},
"test": {
"signingConfig": "Debug",
"bundleAssets": true
"bundleAssets": false
},
"release": {
"signingConfig": "Release",
Expand Down
4 changes: 4 additions & 0 deletions packages/app-harness/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
"build:ios-test": "npx rnv build -p ios -s test --packageManager yarn --ci -r",
"build:macos-test": "npx rnv build -p macos -s test --packageManager yarn --ci -r",
"build:tvos-test": "npx rnv build -p tvos -s test --packageManager yarn --ci -r",
"run:android-test": "npx rnv run -p android -s test --packageManager yarn --ci -r",
"run:androidtv-test": "npx rnv run -p androidtv -s test --packageManager yarn --ci -r",
"run:ios-test": "npx rnv run -p ios -s test --packageManager yarn --ci -r",
"run:tvos-test": "npx rnv run -p tvos -s test --packageManager yarn --ci -r",
"e2e:android": "APPIUM_HOME=./ PLATFORM=android JAVA_HOME=$(/usr/libexec/java_home) wdio wdio.conf.cjs",
"e2e:androidtv": "APPIUM_HOME=./ PLATFORM=androidtv JAVA_HOME=$(/usr/libexec/java_home) wdio wdio.conf.cjs",
"e2e:ios": "APPIUM_HOME=./ PLATFORM=ios wdio wdio.conf.cjs",
Expand Down
3 changes: 2 additions & 1 deletion packages/app-harness/src/app/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useEffect } from 'react';
import { Text, View } from 'react-native';
import { testProps } from '../config';
import SplashScreen from 'react-native-splash-screen';

const App = () => {
Expand All @@ -8,7 +9,7 @@ const App = () => {
}, []);
return (
<View>
<Text>ReNative Harness</Text>
<Text {...testProps('app-harness-home-screen-intro-text')}>ReNative Harness</Text>
<Text>{`hermes: ${typeof HermesInternal === 'object' && HermesInternal !== null ? 'yes' : 'no'}`}</Text>
</View>
);
Expand Down
3 changes: 2 additions & 1 deletion packages/app-harness/src/app/index.web.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import React from 'react';
import { testProps } from '../config';
import { Text, View } from 'react-native';

const App = () => {
return (
<View>
<Text>ReNative Harness</Text>
<Text {...testProps('app-harness-home-screen-intro-text')}>ReNative Harness</Text>
<Text>{`hermes: ${typeof HermesInternal === 'object' && HermesInternal !== null ? 'yes' : 'no'}`}</Text>
</View>
);
Expand Down
Loading
Loading