From 92912c0d3c7a467d8fb1ae749993c33041896a21 Mon Sep 17 00:00:00 2001 From: Deepak Bomjan Date: Thu, 5 Sep 2024 10:07:45 +0545 Subject: [PATCH 1/2] ci: disable e2e runner on pr comment --- .github/workflows/e2e-runner.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/e2e-runner.yml b/.github/workflows/e2e-runner.yml index 20960b3c9..a0c9e837a 100644 --- a/.github/workflows/e2e-runner.yml +++ b/.github/workflows/e2e-runner.yml @@ -1,7 +1,8 @@ -name: Trigger on Comment +name: Run E2E on: - issue_comment: - types: [created] + push: + branches: + - main permissions: contents: read issues: read From b880b7ac5ad351f49441a2796c3976a94c14b041 Mon Sep 17 00:00:00 2001 From: Deepak Bomjan Date: Thu, 5 Sep 2024 10:17:56 +0545 Subject: [PATCH 2/2] ci: remove e2e runner workflow --- .github/workflows/e2e-runner.yml | 63 -------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 .github/workflows/e2e-runner.yml diff --git a/.github/workflows/e2e-runner.yml b/.github/workflows/e2e-runner.yml deleted file mode 100644 index a0c9e837a..000000000 --- a/.github/workflows/e2e-runner.yml +++ /dev/null @@ -1,63 +0,0 @@ -name: Run E2E -on: - push: - branches: - - main -permissions: - contents: read - issues: read - pull-requests: read - statuses: write -jobs: - parse-args: - if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/run e2e') - runs-on: ubuntu-latest - steps: - - name: Parse relayer version - id: relay - run: | - echo "RELAYER_VERSION=$(echo ${{ github.event.comment.body }} | sed -n 's/.*\/run e2e \(.*\)/\1/p')" >> $GITHUB_ENV - outputs: - relayer_version: ${{ steps.relay.outputs.RELAYER_VERSION }} - start-runner: - needs: parse-args - uses: ./.github/workflows/runner-start.yml - secrets: inherit - with: - relayer_version: ${{ needs.parse-args.outputs.relayer_version }} - e2e: - name: E2E tests - runs-on: ${{ needs.start-runner.outputs.label }} - needs: start-runner - steps: - - name: Get PR branch - uses: xt0rted/pull-request-comment-branch@v2 - id: comment-branch - - name: Set latest commit status as pending - uses: myrotvorets/set-commit-status-action@master - with: - sha: ${{ steps.comment-branch.outputs.head_sha }} - token: ${{ secrets.GITHUB_TOKEN }} - status: pending - - name: Checkout PR branch - uses: actions/checkout@v3 - with: - ref: ${{ steps.comment-branch.outputs.head_ref }} - - name: Run e2e tests - run: ./scripts/execute-test.sh --clean --use-docker --build-ibc --build-xcall --xcall-branch main --test e2e - - name: Set latest commit status as ${{ job.status }} - uses: myrotvorets/set-commit-status-action@master - if: always() - with: - sha: ${{ steps.comment-branch.outputs.head_sha }} - token: ${{ secrets.GITHUB_TOKEN }} - status: ${{ job.status }} - stop-runner: - uses: ./.github/workflows/runner-stop.yml - secrets: inherit - with: - label: ${{ needs.start-runner.outputs.label }} - ec2-instance-id: ${{ needs.start-runner.outputs.ec2-instance-id }} - needs: - - start-runner - - e2e \ No newline at end of file