improve regex overrides #488
Workflow file for this run
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
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, android] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup | |
run: | | |
yarn config set network-timeout 300000 | |
- name: Bootstrap | |
run: | | |
yarn bootstrap | |
- name: Run | |
run: | | |
cd packages/app-harness && yarn run:android-test & sleep 420 | |
- name: E2E | |
run: | | |
cd packages/app-harness && yarn e2e:android && kill $(lsof -t -i:8093) | |
- name: Delete app | |
run: | | |
adb uninstall renative.harness.test | |
continue-on-error: true | |
# 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 }} |