Skip to content

Commit 95bce59

Browse files
authored
Merge pull request #72806 from aireilly/update-prow-smoketest-script
Adding topicmap linting to smoke test script
2 parents f5a2016 + 3ecf3e7 commit 95bce59

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/prow-smoke-test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
#%
1212
#%OPTIONS ⚙️
1313
#% -v, --validate Validate the AsciiDoc source
14+
#% -l, --lint-topicmaps Lint topic-map YAML
1415
#% -p, --preview $DISTRO "$PRODUCT_NAME" $VERSION Use --preview to run with default options
1516
#% -h, --help Print this help
1617
#%
1718
#%EXAMPLES 🤔
1819
#% ./scripts/prow-smoke-test.sh --validate
20+
#% ./scripts/prow-smoke-test.sh --lint-topicmaps
1921
#% ./scripts/prow-smoke-test.sh --preview
2022
#% ./scripts/prow-smoke-test.sh --preview openshift-rosa
2123
#% ./scripts/prow-smoke-test.sh --preview openshift-pipelines "Red Hat OpenShift Pipelines" 1.14
@@ -78,4 +80,9 @@ elif [[ "$TEST" == "--validate" || "$TEST" == "-v" ]]; then
7880
echo ""
7981
echo "🚧 Validating the docs..."
8082
$CONTAINER_ENGINE run --rm -it -v "$(pwd)":${CONTAINER_WORKDIR}:Z $CONTAINER_IMAGE sh -c 'scripts/check-asciidoctor-build.sh && python3 build_for_portal.py --distro '${DISTRO}' --product "'"${PRODUCT_NAME}"'" --version '${VERSION}' --no-upstream-fetch && python3 makeBuild.py'
83+
84+
elif [[ "$TEST" == "--lint-topicmaps" || "$TEST" == "-l" ]]; then
85+
echo ""
86+
echo "🚧 Linting the topicmap YAML..."
87+
$CONTAINER_ENGINE run --rm -it -v "$(pwd)":${CONTAINER_WORKDIR}:Z $CONTAINER_IMAGE sh -c 'yamllint _topic_maps'
8188
fi

0 commit comments

Comments
 (0)