Skip to content

Bump ruby/setup-ruby from 1.153.0 to 1.154.0 (#116) #214

Bump ruby/setup-ruby from 1.153.0 to 1.154.0 (#116)

Bump ruby/setup-ruby from 1.153.0 to 1.154.0 (#116) #214

Workflow file for this run

name: Rubocop
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
rubocop:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
- name: Set up Ruby
uses: ruby/setup-ruby@52b8784594ec115fd17094752708121dc5dabb47
with:
ruby-version: .ruby-version
bundler-cache: true
- name: Install gems
run: |
# Extract the exact versions of the rubocop gems from Gemfile.lock
rubocop_version=$(sed -n -E 's/^ rubocop \((.+)\)/\1/p' Gemfile.lock)
rubocop_minitest_version=$(sed -n -E 's/^ rubocop-minitest \((.+)\)/\1/p' Gemfile.lock)
rubocop_performance_version=$(sed -n -E 's/^ rubocop-performance \((.+)\)/\1/p' Gemfile.lock)
gem install rubocop -v $rubocop_version
gem install rubocop-minitest -v $rubocop_minitest_version
gem install rubocop-performance -v $rubocop_performance_version
- name: Run Rubocop
run: rubocop --except Metrics