lint.yml 486 B

1234567891011121314151617181920212223
  1. name: Linters
  2. on: [workflow_call]
  3. defaults:
  4. run:
  5. shell: 'bash'
  6. jobs:
  7. eslint:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v3
  11. - uses: actions/setup-node@v3
  12. with:
  13. node-version: 16 # Need for npm >=7.7
  14. cache: 'npm'
  15. # TODO: Install not all dependencies, but only those required for this workflow
  16. - name: Install dependencies
  17. run: npm ci
  18. - run: npm run lint --if-present