mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-18 04:19:27 +00:00
40 lines
922 B
YAML
40 lines
922 B
YAML
name: Haml Linting
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- 'dependabot/**'
|
|
- 'renovate/**'
|
|
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
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Ruby environment
|
|
uses: ./.github/actions/setup-ruby
|
|
|
|
- name: Run haml-lint
|
|
run: |
|
|
echo "::add-matcher::.github/workflows/haml-lint-problem-matcher.json"
|
|
bundle exec haml-lint
|