lint.yml 471 B

1234567891011121314151617181920212223
  1. name: lint
  2. on:
  3. pull_request:
  4. push:
  5. branches: [ master ]
  6. env:
  7. NODE_VERSION: 16.x
  8. jobs:
  9. lint-js:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@v2
  13. - name: Use Node.js ${{ env.NODE_VERSION }}
  14. uses: actions/setup-node@v1
  15. with:
  16. node-version: ${{ env.NODE_VERSION }}
  17. - name: Install ESLint + ESLint configs/plugins
  18. run: npm install --only=dev
  19. - name: Lint files
  20. run: npm run lint