-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Use GH Checks API for manual e2e tests (#3071)
- Loading branch information
Jorge Turrado Ferrero
authored
Jun 1, 2022
1 parent
97fb357
commit f7a06b6
Showing
5 changed files
with
123 additions
and
46 deletions.
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: e2e-tests | ||
on: | ||
pull_request_target: | ||
types: | ||
- labeled | ||
- unlabeled | ||
|
||
env: | ||
SKIP_E2E_TAG: skip-e2e | ||
E2E_CHECK_NAME: e2e tests | ||
|
||
jobs: | ||
e2e-checker: | ||
name: label checker | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: LouisBrunner/checks-action@v1.1.1 | ||
name: Enqueue e2e | ||
id: create | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
sha: ${{ github.event.pull_request.head.sha }} | ||
name: ${{ env.E2E_CHECK_NAME }} | ||
status: queued | ||
|
||
- uses: LouisBrunner/checks-action@v1.1.1 | ||
name: Skip e2e | ||
if: ${{ contains(github.event.pull_request.labels.*.name, env.SKIP_E2E_TAG )}} | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
sha: ${{ github.event.pull_request.head.sha }} | ||
check_id: ${{ steps.create.outputs.check_id }} | ||
conclusion: success | ||
output: | | ||
{"summary": "skipped by maintainer"} |
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: e2e-tests | ||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- synchronize | ||
|
||
env: | ||
SKIP_E2E_TAG: skip-e2e | ||
E2E_CHECK_NAME: e2e tests | ||
|
||
jobs: | ||
check-creator: | ||
name: check-creator | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: LouisBrunner/checks-action@v1.1.1 | ||
name: Enqueue e2e | ||
id: create | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
sha: ${{ github.event.pull_request.head.sha }} | ||
name: ${{ env.E2E_CHECK_NAME }} | ||
status: queued | ||
|
||
- uses: LouisBrunner/checks-action@v1.1.1 | ||
name: Skip e2e | ||
if: ${{ contains(github.event.pull_request.labels.*.name, env.SKIP_E2E_TAG )}} | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
sha: ${{ github.event.pull_request.head.sha }} | ||
check_id: ${{ steps.create.outputs.check_id }} | ||
conclusion: success | ||
output: | | ||
{"summary": "skipped by maintainer"} |
This file was deleted.
Oops, something went wrong.
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
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