lint-haml.yml 1000 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. name: Haml Linting
  2. on:
  3. merge_group:
  4. push:
  5. branches:
  6. - 'main'
  7. - 'stable-*'
  8. paths:
  9. - '.github/workflows/haml-lint-problem-matcher.json'
  10. - '.github/workflows/lint-haml.yml'
  11. - '.haml-lint*.yml'
  12. - '.rubocop*.yml'
  13. - '.ruby-version'
  14. - '**/*.haml'
  15. - 'Gemfile*'
  16. pull_request:
  17. paths:
  18. - '.github/workflows/haml-lint-problem-matcher.json'
  19. - '.github/workflows/lint-haml.yml'
  20. - '.haml-lint*.yml'
  21. - '.rubocop*.yml'
  22. - '.ruby-version'
  23. - '**/*.haml'
  24. - 'Gemfile*'
  25. jobs:
  26. lint:
  27. runs-on: ubuntu-latest
  28. env:
  29. BUNDLE_ONLY: development
  30. steps:
  31. - name: Clone repository
  32. uses: actions/checkout@v4
  33. - name: Set up Ruby
  34. uses: ruby/setup-ruby@v1
  35. with:
  36. bundler-cache: true
  37. - name: Run haml-lint
  38. run: |
  39. echo "::add-matcher::.github/workflows/haml-lint-problem-matcher.json"
  40. bundle exec haml-lint --reporter github