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: make e2e working on rnv #1090

Merged
merged 45 commits into from
Dec 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
a117fd8
chore:graybox with appium2 update
Aug 28, 2023
4675eed
Merge branch 'main' into chore/appium2-upgrade
Oct 23, 2023
ffa76b8
chore: e2e scripts remake
Oct 26, 2023
7a74f6b
chore: add e2e actions
Oct 27, 2023
088d552
Merge branch 'release/1.0' into chore/appium2-upgrade
Nov 27, 2023
d6eac99
chore: bring back e2e setup
Nov 28, 2023
e2f1155
chore: add missing gha
Nov 28, 2023
8799685
wip: make e2e command work without npx
Dec 5, 2023
a63ce7d
lint
Dec 5, 2023
1fcff44
restore tsconfig
Dec 5, 2023
7c7f7c7
chore: add missing setup
Dec 5, 2023
c1cb845
Merge branch 'release/1.0' into chore/appium2-upgrade
Dec 5, 2023
e64977c
chore: missing setup
Dec 5, 2023
c079777
chore: downgrade to wdio7
Dec 5, 2023
8a5e644
cleanup
Dec 5, 2023
d0b4644
testing
Dec 6, 2023
999d0cc
chore: fix all e2e accept macos
Dec 8, 2023
b7335ac
change graybox version
Dec 8, 2023
dcc75cc
Merge branch 'release/1.0' into chore/appium2-upgrade
Dec 8, 2023
01f896f
chore: comment out gha from getting triggered
Dec 8, 2023
c8c7a97
Merge branch 'release/1.0' into chore/appium2-upgrade
pavjacko Dec 11, 2023
786f18b
fix default cache always be set
pavjacko Dec 11, 2023
4ea2a57
fix: change e2e tvos app paths
Dec 11, 2023
72e9d63
migrate rn start to common sdk, add support for showEnv
pavjacko Dec 12, 2023
a837ae9
fix automation runner by enforcing clean build
pavjacko Dec 12, 2023
b210427
fix android selection
pavjacko Dec 12, 2023
980cdee
fix start command
pavjacko Dec 13, 2023
f687ca7
trigger package if bundleAssets set to true but releaseConfig is fals…
pavjacko Dec 13, 2023
a956794
fix start tasks, update test to run instead of build
pavjacko Dec 13, 2023
083f9c4
add dynamic target for test automation
pavjacko Dec 14, 2023
9821887
update UTs
pavjacko Dec 14, 2023
412ce17
refactor env generators
pavjacko Dec 15, 2023
1987d9f
update uts
pavjacko Dec 15, 2023
e0bd2a8
refactor win sdk entry to TS
pavjacko Dec 15, 2023
7da2e16
sdk webpack env generators
pavjacko Dec 15, 2023
b443e2c
migrate rn functions from sdk-apple to sdk-rn
pavjacko Dec 15, 2023
3570edf
remove unused env file
pavjacko Dec 15, 2023
e4f2efd
Merge pull request #1291 from flexn-io/chore/rn-sdk-improvements
pavjacko Dec 15, 2023
917efcb
update uts
pavjacko Dec 15, 2023
9466dbb
Merge branch 'release/1.0' into chore/appium2-upgrade
pavjacko Dec 15, 2023
e6ddb8e
fix device selector when only one avd is available
pavjacko Dec 15, 2023
4003b1b
fix tvos bundler error, improve exec print
pavjacko Dec 16, 2023
9e9c254
fix exec msg, migrate macos electron launcher to executeAsync
pavjacko Dec 17, 2023
1c53ab6
remove unnecessary passing of full env object to exec commands
pavjacko Dec 17, 2023
062b9b2
rename --showEnv to --printExec, printableEnvKeys are no longer neede…
pavjacko Dec 17, 2023
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
59 changes: 59 additions & 0 deletions .github/workflows/e2e-harness-android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: E2E Harness App (Android)

defaults:
run:
shell: zsh -l {0}
on:
workflow_dispatch:
# push:
# branches:
# - main
# - 'release/**'
# paths-ignore:
# - 'docs/**'
# - '**/README.md'
# - '**/lerna.json'
# - '**/metadata.json'
# - '**/renative.json'
# - '**/package.json'
pull_request:
types: [labeled]

jobs:
e2e-harness-android:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || github.event.label.name == 'e2e-harness-android' || github.event.label.name == 'e2e' }}
runs-on: [self-hosted, macos, intel]
steps:
- uses: actions/checkout@v2
- name: Setup
run: |
yarn config set network-timeout 300000
- name: Bootstrap
run: |
yarn bootstrap-clean
- name: Build
run: |
cd packages/app-harness && yarn build:android-test
- name: E2E
run: |
cd packages/app-harness && yarn e2e:android
# Commented because e2e tests would fail due to minion issues
# - name: Post message to Slack via Webhook
# if: ${{ github.event_name == 'push' && failure() }}
# uses: slackapi/slack-github-action@v1.23.0
# with:
# payload: |
# {
# "text": "<!here> *Template Android e2e tests FAILED after* <${{ github.event.pull_request.html_url || github.event.head_commit.url }}|push> :alert:",
# "blocks": [
# {
# "type": "section",
# "text": {
# "type": "mrkdwn",
# "text": "<!here> *Template Android e2e tests FAILED after* <${{ github.event.pull_request.html_url || github.event.head_commit.url }}|push> :alert:"
# }
# }
# ]
# }
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
59 changes: 59 additions & 0 deletions .github/workflows/e2e-harness-androidtv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: E2E Harness App (AndroidTV)

defaults:
run:
shell: zsh -l {0}
on:
workflow_dispatch:
# push:
# branches:
# - main
# - 'release/**'
# paths-ignore:
# - 'docs/**'
# - '**/README.md'
# - '**/lerna.json'
# - '**/metadata.json'
# - '**/renative.json'
# - '**/package.json'
pull_request:
types: [labeled]

jobs:
e2e-harness-androidtv:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || github.event.label.name == 'e2e-harness-androidtv' || github.event.label.name == 'e2e' }}
runs-on: [self-hosted, macos, intel]
steps:
- uses: actions/checkout@v2
- name: Setup
run: |
yarn config set network-timeout 300000
- name: Bootstrap
run: |
yarn bootstrap-clean
- name: Build
run: |
cd packages/app-harness && yarn build:androidtv-test
- name: E2E
run: |
cd packages/app-harness && yarn e2e:androidtv
# Commented because e2e tests would fail due to minion issues
# - name: Post message to Slack via Webhook
# if: ${{ github.event_name == 'push' && failure() }}
# uses: slackapi/slack-github-action@v1.23.0
# with:
# payload: |
# {
# "text": "<!here> *Template AndroidTV e2e tests FAILED after* <${{ github.event.pull_request.html_url || github.event.head_commit.url }}|push> :alert:",
# "blocks": [
# {
# "type": "section",
# "text": {
# "type": "mrkdwn",
# "text": "<!here> *Template AndroidTV e2e tests FAILED after* <${{ github.event.pull_request.html_url || github.event.head_commit.url }}|push> :alert:"
# }
# }
# ]
# }
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
60 changes: 60 additions & 0 deletions .github/workflows/e2e-harness-ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: E2E Harness App (iOS)

defaults:
run:
shell: zsh -l {0}
on:
workflow_dispatch:
# push:
# branches:
# - main
# - 'release/**'
# paths-ignore:
# - 'docs/**'
# - '**/README.md'
# - '**/lerna.json'
# - '**/metadata.json'
# - '**/renative.json'
# - '**/package.json'
pull_request:
types: [labeled]

jobs:
e2e-harness-ios:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || github.event.label.name == 'e2e-harness-ios' || github.event.label.name == 'e2e' }}
runs-on: [self-hosted, macos]
steps:
- uses: actions/checkout@v2
- name: Setup
run: |
security unlock-keychain -p ${{ secrets.FLEXN_KEYCHAIN_PASSWORD }} Flexn.keychain
yarn config set network-timeout 300000
- name: Bootstrap
run: |
yarn bootstrap-clean
- name: Build
run: |
cd packages/app-harness && yarn build:ios-test
- name: E2E
run: |
cd packages/app-harness && yarn e2e:ios
# Commented because e2e tests would fail due to minion issues
# - name: Post message to Slack via Webhook
# if: ${{ github.event_name == 'push' && failure() }}
# uses: slackapi/slack-github-action@v1.23.0
# with:
# payload: |
# {
# "text": "<!here> *Template iOS e2e tests FAILED after* <${{ github.event.pull_request.html_url || github.event.head_commit.url }}|push> :alert:",
# "blocks": [
# {
# "type": "section",
# "text": {
# "type": "mrkdwn",
# "text": "<!here> *Template iOS e2e tests FAILED after* <${{ github.event.pull_request.html_url || github.event.head_commit.url }}|push> :alert:"
# }
# }
# ]
# }
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
60 changes: 60 additions & 0 deletions .github/workflows/e2e-harness-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: E2E Harness App (macOS)

defaults:
run:
shell: zsh -l {0}
on:
workflow_dispatch:
# push:
# branches:
# - main
# - 'release/**'
# paths-ignore:
# - 'docs/**'
# - '**/README.md'
# - '**/lerna.json'
# - '**/metadata.json'
# - '**/renative.json'
# - '**/package.json'
pull_request:
types: [labeled]

jobs:
e2e-harness-macos:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || github.event.label.name == 'e2e-harness-macos' || github.event.label.name == 'e2e' }}
runs-on: [self-hosted, macos]
steps:
- uses: actions/checkout@v2
- name: Setup
run: |
security unlock-keychain -p ${{ secrets.FLEXN_KEYCHAIN_PASSWORD }} Flexn.keychain
yarn config set network-timeout 300000
- name: Bootstrap
run: |
yarn bootstrap-clean
- name: Build
run: |
cd packages/app-harness && yarn build:macos-test
- name: E2E
run: |
cd packages/app-harness && yarn e2e:macos
# Commented because e2e tests would fail due to minion issues
# - name: Post message to Slack via Webhook
# if: ${{ github.event_name == 'push' && failure() }}
# uses: slackapi/slack-github-action@v1.23.0
# with:
# payload: |
# {
# "text": "<!here> *Template macOS e2e tests FAILED after* <${{ github.event.pull_request.html_url || github.event.head_commit.url }}|push> :alert:",
# "blocks": [
# {
# "type": "section",
# "text": {
# "type": "mrkdwn",
# "text": "<!here> *Template macOS e2e tests FAILED after* <${{ github.event.pull_request.html_url || github.event.head_commit.url }}|push> :alert:"
# }
# }
# ]
# }
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
60 changes: 60 additions & 0 deletions .github/workflows/e2e-harness-tvos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: E2E Harness App (tvOS)

defaults:
run:
shell: zsh -l {0}
on:
workflow_dispatch:
# push:
# branches:
# - main
# - 'release/**'
# paths-ignore:
# - 'docs/**'
# - '**/README.md'
# - '**/lerna.json'
# - '**/metadata.json'
# - '**/renative.json'
# - '**/package.json'
pull_request:
types: [labeled]

jobs:
e2e-harness-tvos:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || github.event.label.name == 'e2e-harness-tvos' || github.event.label.name == 'e2e' }}
runs-on: [self-hosted, macos]
steps:
- uses: actions/checkout@v2
- name: Setup
run: |
security unlock-keychain -p ${{ secrets.FLEXN_KEYCHAIN_PASSWORD }} Flexn.keychain
yarn config set network-timeout 300000
- name: Bootstrap
run: |
yarn bootstrap-clean
- name: Build
run: |
cd packages/app-harness && yarn build:tvos-test
- name: E2E
run: |
cd packages/app-harness && yarn e2e:tvos
# Commented because e2e tests would fail due to minion issues
# - name: Post message to Slack via Webhook
# if: ${{ github.event_name == 'push' && failure() }}
# uses: slackapi/slack-github-action@v1.23.0
# with:
# payload: |
# {
# "text": "<!here> *Template tvOS e2e tests FAILED after* <${{ github.event.pull_request.html_url || github.event.head_commit.url }}|push> :alert:",
# "blocks": [
# {
# "type": "section",
# "text": {
# "type": "mrkdwn",
# "text": "<!here> *Template tvOS e2e tests FAILED after* <${{ github.event.pull_request.html_url || github.event.head_commit.url }}|push> :alert:"
# }
# }
# ]
# }
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
59 changes: 59 additions & 0 deletions .github/workflows/e2e-harness-web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: E2E Harness App (Web)

defaults:
run:
shell: zsh -l {0}
on:
workflow_dispatch:
# push:
# branches:
# - main
# - 'release/**'
# paths-ignore:
# - 'docs/**'
# - '**/README.md'
# - '**/lerna.json'
# - '**/metadata.json'
# - '**/renative.json'
# - '**/package.json'
pull_request:
types: [labeled]

jobs:
e2e-harness-web:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || github.event.label.name == 'e2e-harness-web' || github.event.label.name == 'e2e'}}
runs-on: [self-hosted, macos]
steps:
- uses: actions/checkout@v2
- name: Setup
run: |
yarn config set network-timeout 300000
- name: Bootstrap
run: |
yarn bootstrap-clean
- name: Host
run: |
cd packages/app-harness && yarn start:web-test & sleep 60
- name: E2E
run: |
cd packages/app-harness && yarn e2e:web && kill $(lsof -t -i:8080)
# Commented because e2e tests would fail due to minion issues
# - name: Post message to Slack via Webhook
# if: ${{ github.event_name == 'push' && failure() }}
# uses: slackapi/slack-github-action@v1.23.0
# with:
# payload: |
# {
# "text": "<!here> *Template Web e2e tests FAILED after* <${{ github.event.pull_request.html_url || github.event.head_commit.url }}|push> :alert:",
# "blocks": [
# {
# "type": "section",
# "text": {
# "type": "mrkdwn",
# "text": "<!here> *Template Web e2e tests FAILED after* <${{ github.event.pull_request.html_url || github.event.head_commit.url }}|push> :alert:"
# }
# }
# ]
# }
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
Loading