mirror of
https://github.com/mastodon/mastodon.git
synced 2026-03-21 18:05:23 -05:00
46 lines
997 B
YAML
46 lines
997 B
YAML
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
|
|
- name: Set up Ruby
|
|
uses: ruby/setup-ruby@4eb9f110bac952a8b68ecf92e3b5c7a987594ba6 # v1
|
|
with:
|
|
bundler-cache: true
|
|
|
|
- name: Run haml-lint
|
|
run: |
|
|
bin/haml-lint --reporter github
|