Skip to content

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

[ELITERT-1198] Add action to run Ruby linters

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

Workflow file for this run

# This workflow runs Rubocop 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
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
- name: Install Gems
run: |
bundler install
- name: Run Rubocop
continue-on-error: true
uses: reviewdog/[email protected]
with:
skip_install: true
rubocop_version: gemfile
rubocop_extensions: rubocop-rspec:gemfile
use_bundler: true
- name: reek
continue-on-error: true
uses: reviewdog/action-reek@v1
with:
reek_version: gemfile