You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

web-tests.yml 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. name: Web Tests
  2. on:
  3. workflow_call:
  4. concurrency:
  5. group: web-tests-${{ github.head_ref || github.run_id }}
  6. cancel-in-progress: true
  7. jobs:
  8. test:
  9. name: Web Tests
  10. runs-on: ubuntu-latest
  11. defaults:
  12. run:
  13. working-directory: ./web
  14. steps:
  15. - name: Checkout code
  16. uses: actions/checkout@v4
  17. with:
  18. persist-credentials: false
  19. - name: Check changed files
  20. id: changed-files
  21. uses: tj-actions/changed-files@v46
  22. with:
  23. files: web/**
  24. - name: Install pnpm
  25. if: steps.changed-files.outputs.any_changed == 'true'
  26. uses: pnpm/action-setup@v4
  27. with:
  28. package_json_file: web/package.json
  29. run_install: false
  30. - name: Setup Node.js
  31. uses: actions/setup-node@v4
  32. if: steps.changed-files.outputs.any_changed == 'true'
  33. with:
  34. node-version: 22
  35. cache: pnpm
  36. cache-dependency-path: ./web/package.json
  37. - name: Install dependencies
  38. if: steps.changed-files.outputs.any_changed == 'true'
  39. working-directory: ./web
  40. run: pnpm install --frozen-lockfile
  41. - name: Check i18n types synchronization
  42. if: steps.changed-files.outputs.any_changed == 'true'
  43. working-directory: ./web
  44. run: pnpm run check:i18n-types
  45. - name: Run tests
  46. if: steps.changed-files.outputs.any_changed == 'true'
  47. working-directory: ./web
  48. run: pnpm test