From 85175137e8606406aebfaa84e7a0fe0dff96b673 Mon Sep 17 00:00:00 2001 From: Tuomo Tanskanen Date: Thu, 25 Jan 2024 15:36:44 +0200 Subject: [PATCH] add spellchecker prow test for website repo We earlier removed yaspeller that worked via pre-commit hook. This replaces the spellchecking using basically the same dictionary, but using node/npx cspell to do the spell checking. Actual spellcheck script is done in PR https://github.com/metal3-io/metal3-io.github.io/pull/391 Signed-off-by: Tuomo Tanskanen --- prow/manifests/overlays/metal3/config.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/prow/manifests/overlays/metal3/config.yaml b/prow/manifests/overlays/metal3/config.yaml index 2f00590c..a3222cd4 100644 --- a/prow/manifests/overlays/metal3/config.yaml +++ b/prow/manifests/overlays/metal3/config.yaml @@ -1526,3 +1526,17 @@ presubmits: value: "TRUE" image: docker.io/pipelinecomponents/markdownlint-cli2:0.9.0@sha256:71370df6c967bae548b0bfd0ae313ddf44bfad87da76f88180eff55c6264098c imagePullPolicy: Always + - name: spellcheck + run_if_changed: '(\.md|spellcheck\.sh|.cspell-config.json)$' + decorate: true + spec: + containers: + - args: + - ./hack/spellcheck.sh + command: + - sh + env: + - name: IS_CONTAINER + value: "TRUE" + image: ghcr.io/streetsidesoftware/cspell:8.3.2@sha256:2a6ab337b2f1a89e910653b46fdf219e3e4ec9662fc8d561b956c1fe14db9fac + imagePullPolicy: Always