docs: add tests

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
tcl/master
David Karlsson 2023-10-12 09:32:55 +02:00
parent b911020c1f
commit 1596da6813
3 changed files with 22 additions and 0 deletions

View File

@ -111,3 +111,9 @@ target "docs-image" {
output = ["type=docker"]
tags = ["registry-docs:local"]
}
target "docs-test" {
inherits = ["_common_docs"]
target = "test"
output = ["type=cacheonly"]
}

View File

@ -26,3 +26,10 @@ EXPOSE 1313
FROM scratch AS out
COPY --from=build /out /
FROM wjdp/htmltest:v0.17.0 AS test
WORKDIR /test
COPY --from=build /out ./public
ADD docs/.htmltest.yml .htmltest.yml
RUN --mount=type=cache,target=tmp/.htmltest \
htmltest

View File

@ -0,0 +1,9 @@
DirectoryPath: "public"
EnforceHTTPS: true
CheckDoctype: true
CheckExternal: true
IgnoreAltMissing: true
IgnoreAltEmpty: true
IgnoreEmptyHref: true
IgnoreInternalEmptyHash: true
IgnoreDirectoryMissingTrailingSlash: true