lint.yml 628 B

12345678910111213141516171819202122232425262728293031
  1. name: "Lint BetterYTM"
  2. on:
  3. workflow_dispatch:
  4. push:
  5. branches: [develop]
  6. jobs:
  7. lint:
  8. name: Lint
  9. runs-on: ubuntu-latest
  10. timeout-minutes: 5
  11. strategy:
  12. matrix:
  13. node-version: [20.x]
  14. env:
  15. CI: "true"
  16. steps:
  17. - uses: actions/checkout@v3
  18. - name: Set up Node.js v${{ matrix.node-version }}
  19. uses: actions/setup-node@v3
  20. with:
  21. node-version: ${{ matrix.node-version }}
  22. - name: Install dependencies # runs the npm ci command to install from package-lock.json
  23. run: npm ci
  24. - name: Build with tsc & lint
  25. run: npm run lint