66
66
run : rm -rf ./ci/secrets
67
67
68
68
- name : Validate YAML files (best code practices check included)
69
+ if : ${{ !cancelled() }}
69
70
id : validate-yaml-files
70
71
run : |
71
72
type yamllint || sudo apt-get -y install yamllint
@@ -75,31 +76,19 @@ jobs:
75
76
76
77
# In some YAML files we use JSON strings, let's check these
77
78
- name : Validate JSON strings in YAML files (just syntax)
79
+ if : ${{ !cancelled() }}
78
80
id : validate-json-strings-in-yaml-files
79
81
run : |
80
82
type json_verify || sudo apt-get -y install yajl-tools
81
83
bash ./ci/check-json.sh
82
84
83
85
- name : Validate JSON files (just syntax)
86
+ if : ${{ !cancelled() }}
84
87
id : validate-json-files
85
- run : |
86
- set -Eeuxo pipefail
87
-
88
- type json_verify || sudo apt-get -y install yajl-tools
89
- shopt -s globstar
90
- ret_code=0
91
- echo "-- Checking a regular '*.json' files"
92
- for f in **/*.json; do echo "Checking: '${f}"; echo -n " > "; [[ "$(basename "$f")" == "tsconfig.json" ]] && echo "Skipping ${f}" && continue; cat $f | json_verify || ret_code=1; done
93
- echo "-- Checking a 'Pipfile.lock' files"
94
- for f in **/Pipfile.lock; do echo "Checking: '${f}"; echo -n " > "; cat $f | json_verify || ret_code=1; done
95
- echo "-- Checking a '*.ipynb' Jupyter notebook files"
96
- for f in **/*.ipynb; do echo "Checking: '${f}"; echo -n " > "; cat $f | json_verify || ret_code=1; done
97
- if test "${ret_code}" -ne 0; then
98
- echo "There were errors in some of the checked files. Please run `json_verify` on such files and fix issues there."
99
- fi
100
- exit "${ret_code}"
88
+ run : ./ci/validate_json.py
101
89
102
90
- name : Validate Dockerfiles
91
+ if : ${{ !cancelled() }}
103
92
id : validate-dockerfiles
104
93
run : |
105
94
type hadolint || sudo apt-get -y install wget \
@@ -111,6 +100,6 @@ jobs:
111
100
112
101
# This simply checks that the manifests and respective kustomization.yaml finishes without an error.
113
102
- name : Check kustomize manifest
103
+ if : ${{ !cancelled() }}
114
104
id : kustomize-manifests
115
- run : |
116
- ./ci/kustomize.sh
105
+ run : ./ci/kustomize.sh
0 commit comments