Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Added github action to run e2e on each PR #2561

Merged
merged 4 commits into from
Jul 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
23 changes: 23 additions & 0 deletions .github/workflows/comment-on-e2e-success.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Confirm E2E tests success
on:
repository_dispatch:
types: [comment-pr-on-success]
jobs:
comment:
name: Comment on PR#${{ github.event.client_payload.pr_number }}
runs-on: ubuntu-latest
steps:
- name: Create success comment
if: ${{ github.event.client_payload.status == success()}}
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.client_payload.pr_number }}
body: |
E2E Tests Passed
- name: Create failure comment
if: ${{ github.event.client_payload.status == failure()}}
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.client_payload.pr_number }}
body: |
E2E Tests Failed
13 changes: 13 additions & 0 deletions .github/workflows/deploy-rinkeby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,16 @@ jobs:
token: ${{ secrets.E2E_RUN_HOOK_ACCESS_TOKEN }}
repository: gnosis/safe-react-e2e-tests
event-type: run-e2e-from-safe-react
e2ePR:
name: Trigger e2e tests on pr
if: github.event.number
needs: deploy
runs-on: ubuntu-latest
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.E2E_RUN_HOOK_ACCESS_TOKEN }}
repository: gnosis/safe-react-e2e-tests
event-type: run-e2e-from-safe-react-on-pr
client-payload: '{"pr_number": "${{ github.event.number }}"}'