Skip to content

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

[ELITERT-1198] Add action to run Ruby linters

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

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']
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]
skip_install: true

Check failure on line 30 in .github/workflows/ruby-linters.yml

View workflow run for this annotation

GitHub Actions / Ruby Linters

Invalid workflow file

The workflow is not valid. .github/workflows/ruby-linters.yml (Line: 30, Col: 7): Unexpected value 'skip_install' .github/workflows/ruby-linters.yml (Line: 33, Col: 7): Unexpected value 'reek_version'
- name: Run Reek
uses: reviewdog/[email protected]
reek_version: gemfile