summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2020-06-08 17:47:49 -0700
committerPete Higgins <pete@peterhiggins.org>2020-06-08 17:50:21 -0700
commitadd160cf46ccd374e9278405cef88ca949c519b6 (patch)
treec5a64979c667ad21043645f7f989024faf1a5872
parent090e973e565a49fa48cf58a0fb95e5bc56002ef3 (diff)
downloadchef-add160cf46ccd374e9278405cef88ca949c519b6.tar.gz
Fail early in CI when cspell config can't be parsed.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
-rw-r--r--.expeditor/verify_public.pipeline.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.expeditor/verify_public.pipeline.yml b/.expeditor/verify_public.pipeline.yml
index b88e92a6bc..44cb2626c6 100644
--- a/.expeditor/verify_public.pipeline.yml
+++ b/.expeditor/verify_public.pipeline.yml
@@ -574,6 +574,7 @@ steps:
- label: "Spellcheck"
commands:
+ - ruby -rjson -e "JSON.parse(File.read('cspell.json'))" 2>/dev/null || (echo "Failed to parse config file 'cspell.json', skipping spellcheck" && exit 1)
- npm install -g cspell
- cspell "**/*" "*.md"
expeditor: