docs.yml 879 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. name: Docs
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. workflow_dispatch:
  8. env:
  9. FORCE_COLOR: 2
  10. NODE: 20
  11. permissions:
  12. contents: read
  13. jobs:
  14. docs:
  15. runs-on: ubuntu-latest
  16. steps:
  17. - name: Clone repository
  18. uses: actions/checkout@v4
  19. with:
  20. persist-credentials: false
  21. - name: Set up Node.js
  22. uses: actions/setup-node@v4
  23. with:
  24. node-version: "${{ env.NODE }}"
  25. cache: npm
  26. - run: java -version
  27. - name: Install npm dependencies
  28. run: npm ci
  29. - name: Build docs
  30. run: npm run docs-build
  31. - name: Validate HTML
  32. run: npm run docs-vnu
  33. - name: Run linkinator
  34. uses: JustinBeckwith/linkinator-action@v1
  35. with:
  36. paths: _site
  37. recurse: true
  38. verbosity: error
  39. skip: "^(?!http://localhost)"