test.yaml 776 B

12345678910111213141516171819202122232425262728293031
  1. # Build Docsy & the User Guide and run all repo checks across OSs.
  2. name: test
  3. on:
  4. push:
  5. branches: [main]
  6. pull_request:
  7. # schedule:
  8. # - cron: '11 0 * * *' # 11 past midnight every day
  9. workflow_dispatch:
  10. jobs:
  11. build:
  12. runs-on: ${{ matrix.os }}
  13. strategy:
  14. fail-fast: false
  15. matrix:
  16. os: [windows-latest, ubuntu-latest]
  17. steps:
  18. - uses: actions/checkout@v4
  19. - uses: actions/setup-node@v4
  20. with:
  21. node-version-file: .nvmrc
  22. cache: npm
  23. cache-dependency-path: package.json
  24. - run: npm install --omit=optional
  25. - if: runner.os != 'Windows'
  26. run: npm run test:all
  27. - if: runner.os == 'Windows'
  28. run: npm run ci:prepare && npm run cd:docs build && npm run ci:post