lint-haml.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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: Install native Ruby dependencies
  31. run: |
  32. sudo apt-get update
  33. sudo apt-get install -y libicu-dev libidn11-dev
  34. - name: Set up Ruby
  35. uses: ruby/setup-ruby@v1
  36. with:
  37. ruby-version: .ruby-version
  38. bundler-cache: true
  39. - name: Run haml-lint
  40. run: |
  41. echo "::add-matcher::.github/workflows/haml-lint-problem-matcher.json"
  42. bundle exec haml-lint