2023-03-15 14:15:36 +11:00
|
|
|
name: Haml Linting
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches-ignore:
|
|
|
|
- 'dependabot/**'
|
2023-06-06 18:42:23 +10:00
|
|
|
- 'renovate/**'
|
2023-03-15 14:15:36 +11: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 18:41:26 +10:00
|
|
|
uses: actions/checkout@v4
|
2023-03-15 14:15:36 +11:00
|
|
|
|
|
|
|
- name: Install native Ruby dependencies
|
2023-03-30 23:19:33 +11:00
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y libicu-dev libidn11-dev
|
2023-03-15 14:15:36 +11:00
|
|
|
|
|
|
|
- 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
|