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.
46 lines
992 B
46 lines
992 B
name: Haml Linting |
|
on: |
|
merge_group: |
|
push: |
|
branches: |
|
- 'main' |
|
- 'stable-*' |
|
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 |
|
|
|
env: |
|
BUNDLE_ONLY: development |
|
|
|
steps: |
|
- name: Clone repository |
|
uses: actions/checkout@v4 |
|
|
|
- name: Set up Ruby |
|
uses: ruby/setup-ruby@v1 |
|
with: |
|
bundler-cache: true |
|
|
|
- name: Run haml-lint |
|
run: | |
|
echo "::add-matcher::.github/workflows/haml-lint-problem-matcher.json" |
|
bin/haml-lint --reporter github
|
|
|