docs: add tests
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
b911020c1f
commit
1596da6813
3 changed files with 22 additions and 0 deletions
|
@ -111,3 +111,9 @@ target "docs-image" {
|
||||||
output = ["type=docker"]
|
output = ["type=docker"]
|
||||||
tags = ["registry-docs:local"]
|
tags = ["registry-docs:local"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
target "docs-test" {
|
||||||
|
inherits = ["_common_docs"]
|
||||||
|
target = "test"
|
||||||
|
output = ["type=cacheonly"]
|
||||||
|
}
|
||||||
|
|
|
@ -26,3 +26,10 @@ EXPOSE 1313
|
||||||
|
|
||||||
FROM scratch AS out
|
FROM scratch AS out
|
||||||
COPY --from=build /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
|
||||||
|
|
9
docs/.htmltest.yml
Normal file
9
docs/.htmltest.yml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
DirectoryPath: "public"
|
||||||
|
EnforceHTTPS: true
|
||||||
|
CheckDoctype: true
|
||||||
|
CheckExternal: true
|
||||||
|
IgnoreAltMissing: true
|
||||||
|
IgnoreAltEmpty: true
|
||||||
|
IgnoreEmptyHref: true
|
||||||
|
IgnoreInternalEmptyHash: true
|
||||||
|
IgnoreDirectoryMissingTrailingSlash: true
|
Loading…
Reference in a new issue