mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
Add mergify merge queue configuration file (#4917)
* Add mergify.yml. * Abstract out CI jobs to a "success" job so that a change in the CI jobs don't require modification to mergify configuration on stable branch. * Add new jobs to the `needs` list of `test-suite-success`. * Set `batch_max_wait_time` to 60 s.
This commit is contained in:
13
scripts/ci/check-success-job.sh
Executable file
13
scripts/ci/check-success-job.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
# Check that $SUCCESS_JOB depends on all other jobs in the given $YAML
|
||||
|
||||
set -euf -o pipefail
|
||||
|
||||
YAML=$1
|
||||
SUCCESS_JOB=$2
|
||||
|
||||
yq '... comments="" | .jobs | map(. | key) | .[]' < "$YAML" | grep -v "$SUCCESS_JOB" | sort > all_jobs.txt
|
||||
yq "... comments=\"\" | .jobs.$SUCCESS_JOB.needs[]" < "$YAML" | grep -v "$SUCCESS_JOB" | sort > dep_jobs.txt
|
||||
diff all_jobs.txt dep_jobs.txt || (echo "COMPLETENESS CHECK FAILED" && exit 1)
|
||||
rm all_jobs.txt dep_jobs.txt
|
||||
echo "COMPLETENESS CHECK PASSED"
|
||||
Reference in New Issue
Block a user