ci.yml 673 B

12345678910111213141516171819202122232425262728293031323334
  1. name: CI
  2. on:
  3. push:
  4. branches: [main]
  5. pull_request:
  6. branches: [main]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. defaults:
  11. run:
  12. working-directory: web
  13. steps:
  14. # actions/checkout@v6
  15. - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
  16. # actions/setup-node@v6
  17. - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
  18. with:
  19. node-version: 20
  20. cache: npm
  21. cache-dependency-path: web/package-lock.json
  22. - name: Install dependencies
  23. run: npm ci
  24. - name: Type check
  25. run: npx tsc --noEmit
  26. - name: Build
  27. run: npm run build