-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: improve CI parallelism (#263)
Moving the Subverso consistency check to its own job improves parallel processing and fails faster. Also, there's no need to run on push and on pull request - it'd be nice to kick off builds when the push happens, but this results in double builds, which is not good.
- Loading branch information
1 parent
fb294c7
commit b84e7f6
Showing
2 changed files
with
20 additions
and
6 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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
name: Consistent Subverso dependencies | ||
|
||
jobs: | ||
build: | ||
name: consistency | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check for consistent Subverso versions in all manifests | ||
run: | | ||
echo "Subverso versions:" | ||
find . -name lake-manifest.json -print0 | xargs -0 jq '.packages[] | select(.name == "subverso") | {"file": input_filename, "subverso": .rev}' | ||
find . -name lake-manifest.json -print0 | xargs -0 jq -e -s 'map(.packages[] | select(.name == "subverso").rev) | .[0] as $x | all(.[]; . == $x)' |