frontend-tests.yml 1.3 KB

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