You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.0 KiB

  1. name: Haml Linting
  2. on:
  3. push:
  4. branches-ignore:
  5. - 'dependabot/**'
  6. paths:
  7. - '.github/workflows/haml-lint-problem-matcher.json'
  8. - '.github/workflows/lint-haml.yml'
  9. - '.haml-lint*.yml'
  10. - '.rubocop*.yml'
  11. - '.ruby-version'
  12. - '**/*.haml'
  13. - 'Gemfile*'
  14. pull_request:
  15. paths:
  16. - '.github/workflows/haml-lint-problem-matcher.json'
  17. - '.github/workflows/lint-haml.yml'
  18. - '.haml-lint*.yml'
  19. - '.rubocop*.yml'
  20. - '.ruby-version'
  21. - '**/*.haml'
  22. - 'Gemfile*'
  23. jobs:
  24. lint:
  25. runs-on: ubuntu-latest
  26. steps:
  27. - name: Clone repository
  28. uses: actions/checkout@v3
  29. - name: Install native Ruby dependencies
  30. run: sudo apt-get install -y libicu-dev libidn11-dev
  31. - name: Set up Ruby
  32. uses: ruby/setup-ruby@v1
  33. with:
  34. ruby-version: .ruby-version
  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