Skip to content

Commit 77517f8

Browse files
committed
ci: add lint/check job to merge queue for fast error detection
1 parent 761f4f9 commit 77517f8

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/merge_group.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,24 +59,43 @@ jobs:
5959
license_type: enterprise
6060
telemetry_source: "pr-test"
6161

62+
check:
63+
needs: changes
64+
if: needs.changes.outputs.any_src_changed == 'true'
65+
runs-on: [self-hosted, X64, Linux, 16c32g, aws]
66+
env:
67+
RUNNER_PROVIDER: aws
68+
steps:
69+
- uses: actions/checkout@v4
70+
- name: Check
71+
uses: ./.github/actions/check
72+
with:
73+
github_token: ${{ secrets.GITHUB_TOKEN }}
74+
6275
ready:
6376
if: always()
6477
runs-on: ubuntu-latest
6578
needs:
6679
- changes
6780
- linux
81+
- check
6882
steps:
6983
- name: Check Ready to Merge
7084
uses: actions/github-script@v7
7185
env:
7286
SRC_CHANGED: ${{ needs.changes.outputs.any_src_changed }}
7387
LINUX_BUILD_RESULT: ${{ needs.linux.result }}
88+
CHECK_RESULT: ${{ needs.check.result }}
7489
with:
7590
script: |
7691
if (process.env.SRC_CHANGED == 'false') {
7792
core.info('No source file changes detected, skipping');
7893
return;
7994
}
95+
if (process.env.CHECK_RESULT !== 'success') {
96+
core.setFailed('Check failed, not ready to merge');
97+
return;
98+
}
8099
if (process.env.LINUX_BUILD_RESULT == 'success') {
81100
core.info('Linux build succeeded, ready to merge');
82101
return;

0 commit comments

Comments
 (0)