Snapshot of upstream tag v4.7.4 (commit d04059fc80be5cbba6b4dd5a8b94d63ffff09f2c) from https://github.com/mastodon/mastodon, unmodified.
45 lines
909 B
YAML
45 lines
909 B
YAML
name: Haml Linting
|
|
on:
|
|
merge_group:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
- 'stable-*'
|
|
paths:
|
|
- '.github/workflows/lint-haml.yml'
|
|
- '.haml-lint*.yml'
|
|
- '.rubocop*.yml'
|
|
- '.ruby-version'
|
|
- '**/*.haml'
|
|
- 'Gemfile*'
|
|
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/lint-haml.yml'
|
|
- '.haml-lint*.yml'
|
|
- '.rubocop*.yml'
|
|
- '.ruby-version'
|
|
- '**/*.haml'
|
|
- 'Gemfile*'
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
|
|
env:
|
|
BUNDLE_ONLY: development
|
|
|
|
steps:
|
|
- name: Clone repository
|
|
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
|
|
|
- name: Set up Ruby
|
|
uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0
|
|
with:
|
|
bundler-cache: true
|
|
|
|
- name: Run haml-lint
|
|
run: |
|
|
bin/haml-lint --reporter github
|