Improve compilation time in standard JSON mode and honor requested output #48
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check docs up-to-date | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - 'book/**' | |
| - 'docs/**' | |
| - '.gitignore' | |
| - 'Makefile' | |
| - '.github/workflows/book.yml' | |
| pull_request: | |
| branches: ["main"] | |
| types: [opened, synchronize] | |
| paths: | |
| - 'book/**' | |
| - 'docs/**' | |
| - '.gitignore' | |
| - 'Makefile' | |
| - '.github/workflows/book.yml' | |
| jobs: | |
| check-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: { fetch-depth: 0 } | |
| - name: Install and test the mdBook | |
| run: make test-book | |
| - name: Build book | |
| run: mdbook build book | |
| - name: Build book to tmp | |
| run: mdbook build book -d docs-tmp | |
| - name: Compare with committed docs | |
| run: | | |
| if ! diff -r docs-tmp docs 2>/dev/null; then | |
| echo "docs/ is not up-to-date. Run \`make book\` and commit the docs/ directory" | |
| exit 1 | |
| fi |