Skip to content
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
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Loading