Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ci: fix e2e test fail label #532

Merged
merged 2 commits into from
Apr 3, 2023
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
25 changes: 25 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pull_request_rules:
- -check-failure=lint
- -check-failure=build
- -check-failure=test
- -check-failure=test-e2e
- -check-failure=storybook-build
actions:
merge:
Expand All @@ -37,6 +38,10 @@ pull_request_rules:
- check-success=test
- check-neutral=test
- check-skipped=test
- or:
- check-success=test-e2e
- check-neutral=test-e2e
- check-skipped=test-e2e
- or:
- check-success=storybook-build
- check-neutral=storybook-build
Expand All @@ -54,6 +59,7 @@ pull_request_rules:
- check-failure=lint
- check-failure=build
- check-failure=test
- check-failure=test-e2e
- check-failure=storybook-build
actions:
label:
Expand Down Expand Up @@ -132,6 +138,25 @@ pull_request_rules:
remove:
- 'ci:test:fail'

- name: add E2E test fail label
conditions:
- check-failure=test-e2e
actions:
label:
add:
- 'ci:test:e2e:fail'

- name: remove E2E test fail label
conditions:
- or:
- check-success=test-e2e
- check-neutral=test-e2e
- check-skipped=test-e2e
actions:
label:
remove:
- 'ci:test:e2e:fail'

- name: toggle labels based on build state
conditions:
- check-failure=build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- '.github/scripts/**'

jobs:
test:
test-e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down