lint-js.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. name: JavaScript Linting
  2. on:
  3. push:
  4. branches-ignore:
  5. - 'dependabot/**'
  6. - 'renovate/**'
  7. paths:
  8. - 'package.json'
  9. - 'yarn.lock'
  10. - 'tsconfig.json'
  11. - '.nvmrc'
  12. - '.prettier*'
  13. - '.eslint*'
  14. - '**/*.js'
  15. - '**/*.jsx'
  16. - '**/*.ts'
  17. - '**/*.tsx'
  18. - '.github/workflows/lint-js.yml'
  19. pull_request:
  20. paths:
  21. - 'package.json'
  22. - 'yarn.lock'
  23. - 'tsconfig.json'
  24. - '.nvmrc'
  25. - '.prettier*'
  26. - '.eslint*'
  27. - '**/*.js'
  28. - '**/*.jsx'
  29. - '**/*.ts'
  30. - '**/*.tsx'
  31. - '.github/workflows/lint-js.yml'
  32. jobs:
  33. lint:
  34. runs-on: ubuntu-latest
  35. steps:
  36. - name: Clone repository
  37. uses: actions/checkout@v4
  38. - name: Set up Node.js
  39. uses: actions/setup-node@v3
  40. with:
  41. cache: yarn
  42. node-version-file: '.nvmrc'
  43. - name: Install all yarn packages
  44. run: yarn --frozen-lockfile
  45. - name: ESLint
  46. run: yarn lint:js --max-warnings 0
  47. - name: Typecheck
  48. run: yarn typecheck