mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-26 23:26:41 +00:00
45 lines
1 KiB
YAML
45 lines
1 KiB
YAML
|
name: Haml Linting
|
||
|
on:
|
||
|
push:
|
||
|
branches-ignore:
|
||
|
- 'dependabot/**'
|
||
|
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@v3
|
||
|
|
||
|
- name: Install native Ruby dependencies
|
||
|
run: sudo apt-get install -y libicu-dev libidn11-dev
|
||
|
|
||
|
- name: Set up Ruby
|
||
|
uses: ruby/setup-ruby@v1
|
||
|
with:
|
||
|
ruby-version: .ruby-version
|
||
|
bundler-cache: true
|
||
|
|
||
|
- name: Run haml-lint
|
||
|
run: |
|
||
|
echo "::add-matcher::.github/workflows/haml-lint-problem-matcher.json"
|
||
|
bundle exec haml-lint
|