Skip to content

Commit 2027987

Browse files
authored
Merge pull request #8 from composefs/ci/merge-queue
ci: Enable merge queue support
2 parents 77cceb8 + cc5f99b commit 2027987

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [main]
66
pull_request:
77
branches: [main]
8+
merge_group:
89

910
env:
1011
CARGO_TERM_COLOR: always
@@ -74,3 +75,20 @@ jobs:
7475
- run: chmod +x /usr/local/bin/cfsrun /usr/local/bin/cfsctl
7576
- name: Run rootful integration tests
7677
run: cargo test --test integration
78+
79+
required-checks:
80+
name: Required Checks
81+
if: always()
82+
needs: [fmt, build, integration-rootful]
83+
runs-on: ubuntu-24.04
84+
steps:
85+
- name: Check all jobs
86+
env:
87+
NEEDS: ${{ toJson(needs) }}
88+
run: |
89+
FAILED=$(echo "$NEEDS" | jq -r 'to_entries[] | select(.value.result | IN("success","skipped") | not) | .key')
90+
if [ -n "$FAILED" ]; then
91+
echo "The following jobs did not succeed: $FAILED"
92+
exit 1
93+
fi
94+
echo "All jobs succeeded or were skipped."

0 commit comments

Comments
 (0)