1
0

lint-haml.yml 1004 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. env:
  28. BUNDLE_ONLY: development
  29. steps:
  30. - name: Clone repository
  31. uses: actions/checkout@v4
  32. - name: Set up Ruby
  33. uses: ruby/setup-ruby@v1
  34. with:
  35. bundler-cache: true
  36. - name: Run haml-lint
  37. run: |
  38. echo "::add-matcher::.github/workflows/haml-lint-problem-matcher.json"
  39. bundle exec haml-lint --reporter github