lint.yml 946 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: Run linters
  2. on: [push]
  3. env:
  4. PNPM_CACHE_FOLDER: .pnpm-store
  5. HUSKY: 0 # Bypass husky commit hook for CI
  6. jobs:
  7. lint:
  8. name: Lint all projects
  9. runs-on: ubuntu-20.04
  10. steps:
  11. - name: Checkout
  12. uses: actions/checkout@v2
  13. - name: setup caching
  14. uses: actions/cache@v2
  15. with:
  16. path: ${{ env.PNPM_CACHE_FOLDER }}
  17. key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
  18. restore-keys: |
  19. ${{ runner.os }}-pnpm-
  20. - name: setup pnpm
  21. uses: pnpm/action-setup@v2.2.4
  22. with:
  23. version: 7
  24. - name: setup node.js
  25. uses: actions/setup-node@v2
  26. with:
  27. node-version: 16.x
  28. cache: 'pnpm'
  29. - name: setup pnpm config
  30. run: pnpm config set store-dir $PNPM_CACHE_FOLDER
  31. - run: pnpm install --no-frozen-lockfile --shamefully-hoist
  32. - name: Run Lint
  33. run: pnpm run lint