test: remove pointless validation step

This validation was not caused in CI, and it can't really be in it's
current form, since the hugo_stats.json contains a lot of
false-positives, meaning that the file can easily become outdated
without it actually impacting anything.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson
2024-05-20 15:41:23 +02:00
parent 7598097a58
commit 4b4698a4f3
2 changed files with 1 additions and 22 deletions

View File

@@ -34,17 +34,6 @@ RUN hugo --gc --minify -d /out -e $HUGO_ENV -b $DOCS_URL
FROM scratch AS release
COPY --from=build /out /
FROM scratch AS update-stats
COPY --from=build /src/hugo_stats.json /hugo_stats.json
FROM build AS validate-stats
RUN <<EOF
if [ -n "$(git status --porcelain -- hugo_stats.json)" ]; then
echo >&2 'ERROR: hugo_stats.json differs. Update with `docker buildx bake update-stats`'
exit 1
fi
EOF
FROM davidanson/markdownlint-cli2:v0.12.1 AS lint
USER root
RUN --mount=type=bind,target=. \

View File

@@ -27,7 +27,7 @@ target "release" {
}
group "validate" {
targets = ["lint", "test", "validate-stats"]
targets = ["lint", "test"]
}
target "test" {
@@ -172,13 +172,3 @@ target "validate-upstream" {
target = "validate-upstream"
output = ["type=cacheonly"]
}
target "update-stats" {
target = "update-stats"
output = ["."]
}
target "validate-stats" {
target = "validate-stats"
output = ["type=cacheonly"]
}