fix: broken glob path for lint job

Linting was only running on a subset of our Markdown files in `content`.
This change fixes the glob path, and adds appropriate exclude paths.
Because the glob pattern was incorrect before, we had lots of files that
didn't comply with the linting rules. This commit also fixes those
issues.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson
2023-11-04 10:46:33 +01:00
parent 18cdb02ece
commit 1fdb2e77d4
52 changed files with 295 additions and 272 deletions

View File

@@ -35,7 +35,10 @@ COPY --from=build /out /
FROM davidanson/markdownlint-cli2:v0.10.0 as lint
USER root
RUN --mount=type=bind,target=. \
/usr/local/bin/markdownlint-cli2 content/**/*.md
/usr/local/bin/markdownlint-cli2 \
"content/**/*.md" \
"#content/engine/release-notes/*.md" \
"#content/desktop/previous-versions/*.md"
FROM wjdp/htmltest:v${HTMLTEST_VERSION} as test
WORKDIR /test