test: Create multichain e2e remove network while connected to dapp #54572
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: Run Bitrise E2E Check | |
on: | |
issue_comment: | |
types: [edited, deleted] | |
pull_request: | |
types: [opened, reopened, labeled, unlabeled, synchronize] | |
env: | |
E2E_LABEL: 'Run Smoke E2E' | |
E2E_PIPELINE: 'pr_smoke_e2e_pipeline' | |
WORKFLOW_NAME: 'run-bitrise-e2e-check' | |
jobs: | |
is-fork-pull-request: | |
name: Determine pull request source | |
if: ${{ github.event.issue.pull_request || github.event_name == 'pull_request' }} | |
runs-on: ubuntu-latest | |
outputs: | |
IS_FORK: ${{ steps.is-fork.outputs.IS_FORK }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Determine whether this PR is from a fork | |
id: is-fork | |
run: echo "IS_FORK=$(gh pr view --json isCrossRepository --jq '.isCrossRepository' "${PR_NUMBER}" )" >> "$GITHUB_OUTPUT" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PR_NUMBER: ${{ github.event.number || github.event.issue.number }} | |
run-bitrise-e2e-check: | |
needs: is-fork-pull-request | |
runs-on: ubuntu-latest | |
if: ${{ needs.is-fork-pull-request.outputs.IS_FORK == 'false' }} | |
permissions: | |
pull-requests: write | |
contents: write | |
checks: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Install dependencies | |
run: yarn --immutable | |
working-directory: '.github/scripts' | |
- name: Check Bitrise E2E Status | |
env: | |
BITRISE_BUILD_TRIGGER_TOKEN: ${{ secrets.BITRISE_BUILD_TRIGGER_TOKEN }} | |
BITRISE_APP_ID: ${{ secrets.BITRISE_APP_ID }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# The status check created under this workflow may be bucketed under another check suite in Github actions. This is a result of workflows with the same triggers. | |
# For example, the status check may show as `CLA Signature Bot / Bitrise E2E Status`. This is a bug on Github's UI. https://github.com/orgs/community/discussions/24616 | |
run: yarn run run-bitrise-e2e-check | |
working-directory: '.github/scripts' |