Skip to content

Commit 47e4aa4

Browse files
committed
ci: Check committed html matches build
1 parent 1dbd29d commit 47e4aa4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,11 @@ test-fast:
2121
! find _site/ -name '*.html' | xargs grep ']\[' | grep -v skip-test | grep .
2222
## Ensure that no template strings leak through liquid rendering
2323
! find _site/ -name '*.html' | xargs grep '\$$(.*)'
24+
25+
## Check if the generated site differs
26+
@if [ -n "$(shell git status --porcelain -- _site)" ]; then \
27+
echo "FAILED: Built site differs from committed"; \
28+
false; \
29+
else \
30+
echo "SUCCESS"; \
31+
fi

0 commit comments

Comments
 (0)