lint-css.yml 1019 B

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