diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd67ed822d..ebc7fce0a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,3 +62,17 @@ jobs: public/ output: lychee.md jobSummary: true + + - name: verify search results + run: | + set -x + res=0 + for term in commit config log rev-parse + do + node ./script/run-pagefind.js "$term" | tee search.results >&2 + grep "^1. /docs/git-$term\\.html" search.results || { + echo "::error::Search for $term failed to show the manual page first" >&2 + res=1 + } + done + exit $res \ No newline at end of file