2023-03-15 03:15:36 +00:00
|
|
|
name: Haml Linting
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches-ignore:
|
|
|
|
- 'dependabot/**'
|
2023-06-06 08:42:23 +00:00
|
|
|
- 'renovate/**'
|
2023-03-15 03:15:36 +00: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 13:23:32 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
BUNDLE_ONLY: development
|
|
|
|
|
2023-03-15 03:15:36 +00:00
|
|
|
steps:
|
|
|
|
- name: Clone repository
|
2023-09-11 08:41:26 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-03-15 03:15:36 +00:00
|
|
|
|
2024-06-13 13:23:32 +00:00
|
|
|
- name: Set up Ruby
|
|
|
|
uses: ruby/setup-ruby@v1
|
|
|
|
with:
|
|
|
|
bundler-cache: true
|
2023-03-15 03:15:36 +00:00
|
|
|
|
|
|
|
- name: Run haml-lint
|
|
|
|
run: |
|
|
|
|
echo "::add-matcher::.github/workflows/haml-lint-problem-matcher.json"
|
2024-02-27 10:48:38 +00:00
|
|
|
bundle exec haml-lint --reporter github
|