mirror of https://github.com/databricks/cli.git
Verify that the bundle schema is up to date in CI (#2061)
## Changes I noticed a diff in the schema in #2052. This check should be performed automatically. ## Tests This PR includes a commit that changes the schema to check that the workflow actually fails.
This commit is contained in:
parent
c262b75c3d
commit
b053bfb4de
|
@ -90,6 +90,13 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: 1.23.4
|
go-version: 1.23.4
|
||||||
|
|
||||||
|
- name: Verify that the schema is up to date
|
||||||
|
run: |
|
||||||
|
if ! ( make schema && git diff --exit-code ); then
|
||||||
|
echo "The schema is not up to date. Please run 'make schema' and commit the changes."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Github repo: https://github.com/ajv-validator/ajv-cli
|
# Github repo: https://github.com/ajv-validator/ajv-cli
|
||||||
- name: Install ajv-cli
|
- name: Install ajv-cli
|
||||||
run: npm install -g ajv-cli@5.0.0
|
run: npm install -g ajv-cli@5.0.0
|
||||||
|
|
Loading…
Reference in New Issue