Skip to content

Bump ruby/setup-ruby from 1.192.0 to 1.202.0 #461

Bump ruby/setup-ruby from 1.192.0 to 1.202.0

Bump ruby/setup-ruby from 1.192.0 to 1.202.0 #461

Workflow file for this run

name: Rubocop
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
rubocop:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Set up Ruby
uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc
with:
ruby-version: .ruby-version
- 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_performance_version=$(sed -n -E 's/^ rubocop-performance \((.+)\)/\1/p' Gemfile.lock)
gem install rubocop -v $rubocop_version
gem install rubocop-performance -v $rubocop_performance_version
- name: Run Rubocop
run: rubocop --except Metrics