Skip to content

Commit 1e08941

Browse files
authored
CI: Run rust.yml on merge_queue (#128)
* CI: Run rust.yml on merge_queue Also adds a dummy job `test` so that our branch protection can use it to make sure all pipeline has passed. Signed-off-by: Jiahao XU <[email protected]> * Fix rust.yml Signed-off-by: Jiahao XU <[email protected]> --------- Signed-off-by: Jiahao XU <[email protected]>
1 parent ad6bd57 commit 1e08941

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/rust.yml

+16
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ env:
1313
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
1414

1515
on:
16+
merge_group:
1617
push:
1718
branches:
1819
- main
@@ -129,3 +130,18 @@ jobs:
129130
PUBLIC_KEY: |-
130131
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGzHvK2pKtSlZXP9tPYOOBb/xn0IiC9iLMS355AYUPC7
131132
DOCKER_MODS: linuxserver/mods:openssh-server-ssh-tunnel
133+
134+
# Dummy job to have a stable name for the "all tests pass" requirement
135+
tests-pass:
136+
name: Tests pass
137+
needs:
138+
- os-check
139+
- check
140+
- build
141+
if: always() # always run even if dependencies fail
142+
runs-on: ubuntu-latest
143+
steps:
144+
# fail if ANY dependency has failed or cancelled
145+
- if: "contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')"
146+
run: exit 1
147+
- run: exit 0

0 commit comments

Comments
 (0)