Bump ruby/setup-ruby from 1.157.0 to 1.158.0 #234
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rubocop | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
rubocop: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@cd48c8e22733480b66887b42bfeb6c0b88ea1a56 | |
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 |