frontend-tests.yml 850 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Frontend Test
  2. on:
  3. pull_request:
  4. branches:
  5. - main
  6. - "release/*.*.*"
  7. jobs:
  8. eslint-checks:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v3
  12. - uses: actions/setup-node@v3
  13. with:
  14. node-version: "18"
  15. cache: yarn
  16. cache-dependency-path: "web/yarn.lock"
  17. - run: yarn
  18. working-directory: web
  19. - name: Run eslint check
  20. run: yarn lint
  21. working-directory: web
  22. frontend-build:
  23. runs-on: ubuntu-latest
  24. steps:
  25. - uses: actions/checkout@v3
  26. - uses: actions/setup-node@v3
  27. with:
  28. node-version: "18"
  29. cache: yarn
  30. cache-dependency-path: "web/yarn.lock"
  31. - run: yarn
  32. working-directory: web
  33. - name: Run frontend build
  34. run: yarn build
  35. working-directory: web