Skip to content

Commit 77f01a8

Browse files
NetdocsCopilot
andcommitted
ci(selftest): assert social cards are generated in-container
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f31cfb0 commit 77f01a8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/action-selftest.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,10 @@ jobs:
4040
count="$(find "${out}" -name '*.html' | wc -l)"
4141
echo "Generated ${count} HTML pages in ${out}."
4242
test "${count}" -gt 0
43+
44+
# The social plugin is enabled on docs-site; confirm cards were rendered
45+
# inside the container (this is the path that previously crashed on a
46+
# missing font).
47+
cards="$(find "${out}/assets/social" -name '*.png' 2>/dev/null | wc -l)"
48+
echo "Generated ${cards} social card(s)."
49+
test "${cards}" -gt 0

0 commit comments

Comments
 (0)