test-deploy.yml 605 B

123456789101112131415161718192021222324
  1. name: Test Docusaurus Build
  2. on:
  3. pull_request:
  4. branches:
  5. - docs
  6. # Review gh actions docs if you want to further define triggers, paths, etc
  7. # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
  8. jobs:
  9. test-deploy:
  10. name: Test deployment
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v3
  14. - uses: actions/setup-node@v3
  15. with:
  16. node-version: 18
  17. cache: npm
  18. - name: Install dependencies
  19. run: yarn install --frozen-lockfile
  20. - name: Test build website
  21. run: yarn build