Feature: Add rubocop github ci to prevent no localize variables #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linters | |
on: [push, pull_request] | |
jobs: | |
rubocop: | |
name: RuboCop | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.0.0 | |
- name: Install dependencies | |
run: gem install rubocop rubocop-rails rubocop-i18n | |
- name: Run RuboCop | |
run: rubocop --parallel --format github | |
haml-lint: | |
name: HamlLint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install HamlLint | |
run: gem install haml-lint | |
- name: Run HamlLint | |
run: haml-lint -r github |