lint-css.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. name: CSS Linting
  2. on:
  3. push:
  4. branches-ignore:
  5. - 'dependabot/**'
  6. - 'renovate/**'
  7. paths:
  8. - 'package.json'
  9. - 'yarn.lock'
  10. - '.nvmrc'
  11. - '.prettier*'
  12. - 'stylelint.config.js'
  13. - '**/*.css'
  14. - '**/*.scss'
  15. - '.github/workflows/lint-css.yml'
  16. - '.github/stylelint-matcher.json'
  17. pull_request:
  18. paths:
  19. - 'package.json'
  20. - 'yarn.lock'
  21. - '.nvmrc'
  22. - '.prettier*'
  23. - 'stylelint.config.js'
  24. - '**/*.css'
  25. - '**/*.scss'
  26. - '.github/workflows/lint-css.yml'
  27. - '.github/stylelint-matcher.json'
  28. jobs:
  29. lint:
  30. runs-on: ubuntu-latest
  31. steps:
  32. - name: Clone repository
  33. uses: actions/checkout@v3
  34. - name: Set up Node.js
  35. uses: actions/setup-node@v3
  36. with:
  37. cache: yarn
  38. node-version-file: '.nvmrc'
  39. - name: Install all yarn packages
  40. run: yarn --frozen-lockfile
  41. - uses: xt0rted/stylelint-problem-matcher@v1
  42. - run: echo "::add-matcher::.github/stylelint-matcher.json"
  43. - name: Stylelint
  44. run: yarn lint:sass