frontend-tests.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. name: Frontend Test
  2. on:
  3. push:
  4. branches: [main]
  5. pull_request:
  6. branches:
  7. - main
  8. paths:
  9. - "web/**"
  10. jobs:
  11. static-checks:
  12. runs-on: ubuntu-latest
  13. steps:
  14. - uses: actions/checkout@v4
  15. - uses: pnpm/action-setup@v4.0.0
  16. with:
  17. version: 9
  18. - uses: actions/setup-node@v4
  19. with:
  20. node-version: "20"
  21. cache: pnpm
  22. cache-dependency-path: "web/pnpm-lock.yaml"
  23. - run: pnpm install
  24. working-directory: web
  25. - name: Run eslint check
  26. run: pnpm lint
  27. working-directory: web
  28. - name: Run type checks
  29. run: pnpm type-check
  30. working-directory: web
  31. frontend-build:
  32. runs-on: ubuntu-latest
  33. steps:
  34. - uses: actions/checkout@v4
  35. - uses: pnpm/action-setup@v4.0.0
  36. with:
  37. version: 9
  38. - uses: actions/setup-node@v4
  39. with:
  40. node-version: "20"
  41. cache: pnpm
  42. cache-dependency-path: "web/pnpm-lock.yaml"
  43. - run: pnpm install
  44. working-directory: web
  45. - name: Run frontend build
  46. run: pnpm build
  47. working-directory: web