Skip to content

Commit

Permalink
ci: add merge group to ci triggers (#1355)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemmufazalov committed Sep 24, 2024
1 parent deaf519 commit 22d151b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Node.js CI
on:
pull_request:
branches: ['**']
merge_group:
types: [checks_requested]

jobs:
verify_files:
Expand Down Expand Up @@ -38,6 +40,7 @@ jobs:
e2e_tests:
name: Playwright Tests
runs-on: ubuntu-latest
if: ${{github.event.action != 'checks_requested'}}
permissions:
contents: read

Expand Down Expand Up @@ -121,6 +124,7 @@ jobs:
bundle_size:
name: Check Bundle Size
runs-on: ubuntu-latest
if: ${{github.event.action != 'checks_requested'}}
outputs:
current_size: ${{ steps.current_size.outputs.size }}
main_size: ${{ steps.main_size.outputs.size }}
Expand Down Expand Up @@ -183,7 +187,7 @@ jobs:
deploy_and_update:
name: Deploy and Update PR
needs: [e2e_tests, bundle_size]
if: always() && github.event.pull_request.head.repo.full_name == github.repository
if: ${{always() && github.event.pull_request.head.repo.full_name == github.repository && github.event.action != 'checks_requested'}}
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ on:
- synchronize
- reopened
- edited
merge_group:
types: [checks_requested]

jobs:
verify_title:
name: Verify Title
runs-on: ubuntu-latest
if: ${{github.event.action != 'checks_requested'}}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 22d151b

Please sign in to comment.