diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0241b97..abe28db 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,11 +1,13 @@ name: test -# On every pull request, but only on push to master +# Validate pull requests, queued merge groups, and pushes to master. on: push: branches: - master pull_request: + merge_group: + types: [checks_requested] jobs: test: diff --git a/README.md b/README.md index a2699c0..035dee9 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,15 @@ It currently contains: - `@vis.gl/dev-tools` - Dev tools (build, lint, test, publish) - `@vis.gl/ts-plugins` - TypeScript plugins + +## GitHub merge queue + +The `test` workflow validates pull requests, `merge_group` commits, and pushes to `master`. +Its `test` job runs the same build, lint, Node/browser tests, and coverage checks for each event. + +After the workflow change lands, repository administrators can enable the merge queue for +`master` and require the `test` job from the `test` workflow (GitHub Actions). Any additional +required status check must also report on merge-group commits, or queued merges will wait +for a check that never runs. Queue settings are configured in GitHub, not by this workflow. + +See [GitHub's merge queue configuration guide](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue).