-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): run required checks on merge groups
We often get several Dependabot pull requests in a short period. Our current repository settings - we require a successful build in CI, build for arm64, and require branches to be up to date - means it can be slow to manually merge them. I'd like to switch to using merge queues, then we can disable the requirement for branches to be up to date before merging, since this will be handled by the queue. Developers will then be able to review and enqueue all the PRs, and they will be tested properly against the main branch. To be able to do that we need to run the required tests for enqueued pull requests. That's what we're doing here.
- Loading branch information
Showing
5 changed files
with
27 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ on: | |
pull_request: | ||
branches: | ||
- main | ||
merge_group: | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,8 @@ on: | |
- main | ||
pull_request: | ||
branches: | ||
- '*' | ||
- "*" | ||
merge_group: | ||
|
||
jobs: | ||
lint: | ||
|
@@ -15,15 +16,15 @@ jobs: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | ||
- uses: ./.github/actions/setup-goversion | ||
- run: make lint | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | ||
- uses: ./.github/actions/setup-goversion | ||
- uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 | ||
with: | ||
version: '3.13.1' | ||
version: "3.13.1" | ||
- name: Install jsonnet | ||
run: go install github.com/google/go-jsonnet/cmd/[email protected] | ||
- run: make test | ||
|