ci.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. name: CI
  2. on:
  3. push:
  4. branches: [main]
  5. pull_request:
  6. workflow_dispatch:
  7. permissions:
  8. contents: read
  9. jobs:
  10. docs:
  11. name: Check, build, and verify generated documentation
  12. runs-on: ubuntu-latest
  13. steps:
  14. - name: Checkout
  15. uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
  16. - name: Install Node.js
  17. uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
  18. with:
  19. node-version: '22'
  20. - name: Install dependencies
  21. run: npm ci
  22. - name: Type and content checks
  23. run: npm run check
  24. - name: Build site
  25. run: npm run build
  26. - name: Verify generated AI outputs and release pages
  27. run: |
  28. test -f public/llms.txt
  29. test -f public/llms-full.txt
  30. test -d public/raw
  31. test -f dist/index.html
  32. test -f dist/releases/index.html
  33. test -f dist/releases/release-notes/index.html
  34. grep -q "https://docs.database.pizza/raw/releases/index.md" public/llms.txt
  35. grep -q "https://docs.database.pizza/raw/releases/release-notes.md" public/llms.txt
  36. grep -q "Canonical URL: https://docs.database.pizza/releases/" public/llms-full.txt
  37. grep -q "Canonical URL: https://docs.database.pizza/releases/release-notes/" public/llms-full.txt