betterytm.yml 781 B

12345678910111213141516171819202122232425262728293031323334
  1. name: "BetterYTM"
  2. on:
  3. pull_request:
  4. # The branches below must be a subset of the branches above
  5. branches: [ main, develop ] # runs on every push
  6. jobs:
  7. lint:
  8. name: Lint
  9. runs-on: ubuntu-latest
  10. timeout-minutes: 10
  11. strategy:
  12. fail-fast: false
  13. matrix:
  14. node-version: [14.x]
  15. steps:
  16. - uses: actions/checkout@v1 # checkout latest commit
  17. - name: Use Node.js ${{ matrix.node-version }} # set up Node.js
  18. uses: actions/setup-node@v1
  19. with:
  20. node-version: ${{ matrix.node-version }}
  21. - name: Clean install of dependencies # runs the npm ci command to install all dependencies
  22. run: npm ci
  23. env:
  24. CI: "true"
  25. - name: Lint # runs ESLint
  26. run: npm run lint
  27. env:
  28. CI: "true"