2023-03-14 23:15:36 -04:00
|
|
|
name: Haml Linting
|
|
|
|
on:
|
2024-07-07 05:39:31 -04:00
|
|
|
merge_group:
|
2023-03-14 23:15:36 -04:00
|
|
|
push:
|
2024-07-07 05:39:31 -04:00
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
- 'stable-*'
|
2023-03-14 23:15:36 -04:00
|
|
|
paths:
|
|
|
|
- '.github/workflows/haml-lint-problem-matcher.json'
|
|
|
|
- '.github/workflows/lint-haml.yml'
|
|
|
|
- '.haml-lint*.yml'
|
|
|
|
- '.rubocop*.yml'
|
|
|
|
- '.ruby-version'
|
|
|
|
- '**/*.haml'
|
|
|
|
- 'Gemfile*'
|
|
|
|
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- '.github/workflows/haml-lint-problem-matcher.json'
|
|
|
|
- '.github/workflows/lint-haml.yml'
|
|
|
|
- '.haml-lint*.yml'
|
|
|
|
- '.rubocop*.yml'
|
|
|
|
- '.ruby-version'
|
|
|
|
- '**/*.haml'
|
|
|
|
- 'Gemfile*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
2024-06-13 09:23:32 -04:00
|
|
|
|
|
|
|
env:
|
|
|
|
BUNDLE_ONLY: development
|
|
|
|
|
2023-03-14 23:15:36 -04:00
|
|
|
steps:
|
|
|
|
- name: Clone repository
|
2023-09-11 04:41:26 -04:00
|
|
|
uses: actions/checkout@v4
|
2023-03-14 23:15:36 -04:00
|
|
|
|
2024-06-13 09:23:32 -04:00
|
|
|
- name: Set up Ruby
|
|
|
|
uses: ruby/setup-ruby@v1
|
|
|
|
with:
|
|
|
|
bundler-cache: true
|
2023-03-14 23:15:36 -04:00
|
|
|
|
|
|
|
- name: Run haml-lint
|
|
|
|
run: |
|
|
|
|
echo "::add-matcher::.github/workflows/haml-lint-problem-matcher.json"
|
2024-02-27 05:48:38 -05:00
|
|
|
bundle exec haml-lint --reporter github
|