1
0

test-js.yml 832 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: JavaScript Testing
  2. on:
  3. merge_group:
  4. push:
  5. branches:
  6. - 'main'
  7. - 'stable-*'
  8. paths:
  9. - 'package.json'
  10. - 'yarn.lock'
  11. - '.nvmrc'
  12. - '**/*.js'
  13. - '**/*.jsx'
  14. - '**/*.ts'
  15. - '**/*.tsx'
  16. - '**/*.snap'
  17. - '.github/workflows/test-js.yml'
  18. pull_request:
  19. paths:
  20. - 'package.json'
  21. - 'yarn.lock'
  22. - '.nvmrc'
  23. - '**/*.js'
  24. - '**/*.jsx'
  25. - '**/*.ts'
  26. - '**/*.tsx'
  27. - '**/*.snap'
  28. - '.github/workflows/test-js.yml'
  29. jobs:
  30. test:
  31. runs-on: ubuntu-latest
  32. steps:
  33. - name: Clone repository
  34. uses: actions/checkout@v4
  35. - name: Set up Javascript environment
  36. uses: ./.github/actions/setup-javascript
  37. - name: JavaScript testing
  38. run: yarn jest --reporters github-actions summary