Skip to content

[ELITERT-1198] Add action to run Ruby linters #13

[ELITERT-1198] Add action to run Ruby linters

[ELITERT-1198] Add action to run Ruby linters #13

Workflow file for this run

# This workflow runs Rubocop and Reek on the Pull Requests to make sure
# no linter warnings slip by.
name: Ruby Linters
on:
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.7']
env:
BUNDLE_GEMFILE: Gemfile.lint
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run Rubocop
uses: reviewdog/[email protected]
with:
skip_install: true
rubocop_version: gemfile
rubocop_extensions: rubocop-rspec:gemfile
use_bundler: true
- name: Run Reek
uses: reviewdog/[email protected]
with:
reek_version: gemfile