2023-03-15 12:15:36 +09:00
|
|
|
name: Haml Linting
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches-ignore:
|
|
|
|
- 'dependabot/**'
|
2023-06-06 17:42:23 +09:00
|
|
|
- 'renovate/**'
|
2023-03-15 12:15:36 +09: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
|
|
|
|
steps:
|
|
|
|
- name: Clone repository
|
2023-09-11 17:41:26 +09:00
|
|
|
uses: actions/checkout@v4
|
2023-03-15 12:15:36 +09:00
|
|
|
|
2023-10-24 20:43:24 +09:00
|
|
|
- name: Set up Ruby environment
|
|
|
|
uses: ./.github/actions/setup-ruby
|
2023-03-15 12:15:36 +09:00
|
|
|
|
|
|
|
- name: Run haml-lint
|
|
|
|
run: |
|
|
|
|
echo "::add-matcher::.github/workflows/haml-lint-problem-matcher.json"
|
|
|
|
bundle exec haml-lint
|