1
0

lint-css.yml 985 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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@v4
  34. - name: Set up Javascript environment
  35. uses: ./.github/actions/setup-javascript
  36. - uses: xt0rted/stylelint-problem-matcher@v1
  37. - run: echo "::add-matcher::.github/stylelint-matcher.json"
  38. - name: Stylelint
  39. run: yarn lint:sass