Skip to content

Commit

Permalink
Run E2E tests on every push/PR in this repo (#116)
Browse files Browse the repository at this point in the history
We run the E2E suite using the PR's version of the connector, and make
sure all the tests pass. If they do, this PR is compatible with current
head. How exciting!

---------

Co-authored-by: Tom Harding <[email protected]>
  • Loading branch information
i-am-tom and i-am-tom authored Nov 1, 2023
1 parent bbc1204 commit b10deea
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/e2e-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: end-to-end release compatibility

on:
merge_group:
push:
pull_request:

jobs:
end_to_end_release_compatibility:
name: Check PR against end-to-end tests
runs-on: ubuntu-latest

steps:
- name: Generate short SHA
uses: benjlevesque/[email protected]
id: short-sha
with:
length: 9

- name: Wait for Docker image to be created
uses: lewagon/[email protected]
with:
ref: "${{ github.event.pull_request.head.sha || github.sha }}"
check-name: "build and deploy (ndc-postgres)"
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Dispatch E2E tests
uses: aurelien-baudet/workflow-dispatch@v2
id: workflow_dispatch
with:
inputs: '{ "connector": "${{ steps.short-sha.outputs.sha }}" }'
repo: hasura/v3-e2e-testing
ref: main
token: ${{ secrets.E2E_WORKFLOW_PAT }}
workflow: "cargo test postgres"

0 comments on commit b10deea

Please sign in to comment.