eslint.yml 467 B

12345678910111213141516171819202122
  1. name: Eslint
  2. on: [push, pull_request]
  3. jobs:
  4. linters:
  5. name: Run Eslint
  6. runs-on: ubuntu-latest
  7. steps:
  8. - name: Check out Git repository
  9. uses: actions/checkout@v2
  10. - name: Set up Node.js
  11. uses: actions/setup-node@v1
  12. with:
  13. node-version: 12
  14. # ESLint and Prettier must be in `package.json`
  15. - name: Install Node.js dependencies
  16. run: npm ci
  17. - name: Run eslint
  18. run: npm run eslint