lint-js.yml 946 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. name: JavaScript Linting
  2. on:
  3. merge_group:
  4. push:
  5. branches:
  6. - 'main'
  7. - 'stable-*'
  8. paths:
  9. - 'package.json'
  10. - 'yarn.lock'
  11. - 'tsconfig.json'
  12. - '.nvmrc'
  13. - '.prettier*'
  14. - '.eslint*'
  15. - '**/*.js'
  16. - '**/*.jsx'
  17. - '**/*.ts'
  18. - '**/*.tsx'
  19. - '.github/workflows/lint-js.yml'
  20. pull_request:
  21. paths:
  22. - 'package.json'
  23. - 'yarn.lock'
  24. - 'tsconfig.json'
  25. - '.nvmrc'
  26. - '.prettier*'
  27. - '.eslint*'
  28. - '**/*.js'
  29. - '**/*.jsx'
  30. - '**/*.ts'
  31. - '**/*.tsx'
  32. - '.github/workflows/lint-js.yml'
  33. jobs:
  34. lint:
  35. runs-on: ubuntu-latest
  36. steps:
  37. - name: Clone repository
  38. uses: actions/checkout@v4
  39. - name: Set up Javascript environment
  40. uses: ./.github/actions/setup-javascript
  41. - name: ESLint
  42. run: yarn lint:js --max-warnings 0
  43. - name: Typecheck
  44. run: yarn typecheck