-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run E2E tests on every push/PR in this repo #116
Merged
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
2435a66
Let's have a look
i-am-tom 0bb724f
Token
i-am-tom d1a714d
Maybe?
i-am-tom c062d4e
??
i-am-tom dbdb81b
No action
i-am-tom 6e4e25d
escaping
i-am-tom 76bca1b
??
i-am-tom 1b0438f
GH_TOKEN
i-am-tom 2fa17a0
main
i-am-tom dc0ade9
ref
i-am-tom e92107e
ssh
i-am-tom 9cce546
Auth login
i-am-tom 1a22a73
Jesus please
i-am-tom a5f5a6a
Sattus
i-am-tom 18ede6f
Show the things
i-am-tom 5a536b3
?
i-am-tom d32b3f3
Back to the action
i-am-tom ccb65bc
Maybe
i-am-tom e3c6cf1
Maybe this?
i-am-tom 6b12509
Yes
i-am-tom 5c9f68f
Ref?
i-am-tom 0ce7208
refs
i-am-tom 1640e0e
yaml
i-am-tom 8bb98bb
Does this work
i-am-tom 74f2ba0
?
i-am-tom ae56d3e
rtfm
i-am-tom 6016588
Both
i-am-tom 1dd9278
Plan C
i-am-tom a1a1326
Refs
i-am-tom f048314
Yes?
i-am-tom b80c5ac
Merge branch 'main' into i-am-tom/e2e-magic
i-am-tom 220464a
Wait for docker
i-am-tom d6829e6
Running workflow?
i-am-tom d79e5b6
PR head
i-am-tom 66601cf
Use workflow_run
i-am-tom bdde1cd
Oops
i-am-tom 28a918f
Different name?
i-am-tom 3db41ea
Check name?
i-am-tom d4acd7f
Use short SHA
i-am-tom ad4952f
Merge branch 'main' into i-am-tom/e2e-magic
i-am-tom File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This means that the job runs twice on each commit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty much; there's no way to tell GitHub "push
xor
pull_request".There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess could make it only work on pushes to
main
, then it'd only run double on those.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW I like it that I can push a branch and have all tests run without having to open a PR.