-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
pauliusguzas
committed
Oct 27, 2023
1 parent
ffa76b8
commit 7a74f6b
Showing
6 changed files
with
357 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: E2E Template 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-template-android: | ||
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || github.event.label.name == 'e2e-template-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/template-starter && yarn build:android-test | ||
- name: E2E | ||
run: | | ||
cd packages/template-starter && 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/[email protected] | ||
# 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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: E2E Template 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-template-androidtv: | ||
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || github.event.label.name == 'e2e-template-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/template-starter && yarn build:androidtv-test | ||
- name: E2E | ||
run: | | ||
cd packages/template-starter && 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/[email protected] | ||
# 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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: E2E Template 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-template-ios: | ||
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || github.event.label.name == 'e2e-template-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/template-starter && yarn build:ios-test | ||
- name: E2E | ||
run: | | ||
cd packages/template-starter && 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/[email protected] | ||
# 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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: E2E Template 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-template-macos: | ||
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || github.event.label.name == 'e2e-template-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/template-starter && yarn build:macos-test | ||
- name: E2E | ||
run: | | ||
cd packages/template-starter && 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/[email protected] | ||
# 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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: E2E Template 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-template-tvos: | ||
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || github.event.label.name == 'e2e-template-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/template-starter && yarn build:tvos-test | ||
- name: E2E | ||
run: | | ||
cd packages/template-starter && 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/[email protected] | ||
# 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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: E2E Template 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-template-web: | ||
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || github.event.label.name == 'e2e-template-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/template-starter && yarn start:web-test & sleep 60 | ||
- name: E2E | ||
run: | | ||
cd packages/template-starter && 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/[email protected] | ||
# 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 }} |