lint-js.yml 754 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: JavaScript Linting
  2. on:
  3. push:
  4. branches-ignore:
  5. - 'dependabot/**'
  6. paths:
  7. - 'package.json'
  8. - 'yarn.lock'
  9. - '.prettier*'
  10. - '.eslint*'
  11. - '**/*.js'
  12. - '.github/workflows/lint-js.yml'
  13. pull_request:
  14. paths:
  15. - 'package.json'
  16. - 'yarn.lock'
  17. - '.prettier*'
  18. - '.eslint*'
  19. - '**/*.js'
  20. - '.github/workflows/lint-js.yml'
  21. jobs:
  22. lint:
  23. runs-on: ubuntu-latest
  24. steps:
  25. - name: Clone repository
  26. uses: actions/checkout@v3
  27. - name: Set up Node.js
  28. uses: actions/setup-node@v3
  29. with:
  30. cache: yarn
  31. - name: Install all yarn packages
  32. run: yarn --frozen-lockfile
  33. - name: ESLint
  34. run: yarn test:lint:js