lint-haml.yml 922 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: Haml Linting
  2. on:
  3. push:
  4. branches-ignore:
  5. - 'dependabot/**'
  6. - 'renovate/**'
  7. paths:
  8. - '.github/workflows/haml-lint-problem-matcher.json'
  9. - '.github/workflows/lint-haml.yml'
  10. - '.haml-lint*.yml'
  11. - '.rubocop*.yml'
  12. - '.ruby-version'
  13. - '**/*.haml'
  14. - 'Gemfile*'
  15. pull_request:
  16. paths:
  17. - '.github/workflows/haml-lint-problem-matcher.json'
  18. - '.github/workflows/lint-haml.yml'
  19. - '.haml-lint*.yml'
  20. - '.rubocop*.yml'
  21. - '.ruby-version'
  22. - '**/*.haml'
  23. - 'Gemfile*'
  24. jobs:
  25. lint:
  26. runs-on: ubuntu-latest
  27. steps:
  28. - name: Clone repository
  29. uses: actions/checkout@v4
  30. - name: Set up Ruby environment
  31. uses: ./.github/actions/setup-ruby
  32. - name: Run haml-lint
  33. run: |
  34. echo "::add-matcher::.github/workflows/haml-lint-problem-matcher.json"
  35. bundle exec haml-lint