cue: add cue format and validation checks to github actions test workflow

Signed-off-by: Piaras Hoban <phoban01@gmail.com>
This commit is contained in:
Piaras Hoban
2022-04-11 11:03:22 +01:00
parent 673966bae4
commit 7d0203196a
+16
View File
@@ -45,3 +45,19 @@ jobs:
command: |
kustomize build ./kustomize | kubeval --strict --kubernetes-version 1.19.11 --schema-location https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master
kustomize build ./kustomize | conftest test -p .github/policy -
- name: Setup CUE
uses: cue-lang/setup-cue@main
- name: Verify CUE formatting
working-directory: ./cue
run: |
cue fmt .
status=$(git status --porcelain)
[[ -z "$status" ]] || {
echo "CUE files are not correctly formatted"
echo "$status"
git diff
exit 1
}
- name: Validate CUE
working-directory: ./cue
run: cue vet --all-errors --concrete .