Skip to content

Lint

Lint #178

Workflow file for this run

name: Lint
on:
push:
pull_request:
schedule:
- cron: '10 21 * * 0'
permissions:
contents: read
jobs:
haml-lint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run haml-lint
run: bundle exec haml-lint
rubocop:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true
- name: Run RuboCop
run: bundle exec rubocop