diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0c4f7c68..8399cccf4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,7 @@ on: pull_request: branches: [main] types: [opened, synchronize, reopened] + merge_group: workflow_dispatch: permissions: @@ -12,8 +13,9 @@ permissions: concurrency: group: ci-${{ github.ref }} - # A newer push supersedes the run in progress, on main too. - cancel-in-progress: true + # A newer push supersedes a pull request's run in progress. Runs on main and in the merge + # queue finish, so a broken main shows up and the queue's required checks report. + cancel-in-progress: ${{ github.event_name == 'pull_request' }} env: CARGO_TERM_COLOR: always @@ -23,7 +25,7 @@ env: jobs: # Which parts a pull request touches, so jobs it can't affect skip and leave the - # shared runners to others. Pushes and manual runs always run everything. + # shared runners to others. Pushes, the merge queue and manual runs always run everything. changes: name: Changes runs-on: ubuntu-latest