Skip to content

Bump actions/checkout from 4.1.7 to 4.2.0 #414

Bump actions/checkout from 4.1.7 to 4.2.0

Bump actions/checkout from 4.1.7 to 4.2.0 #414

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@d632683dd7b4114ad314bca15554477dd762a938
- name: Set up Ruby
uses: ruby/setup-ruby@a6b46b8a08edb18935835849f2a17072d5cc8c73
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)
rubocop_minitest_version=$(sed -n -E 's/^ rubocop-minitest \((.+)\)/\1/p' Gemfile.lock)
gem install rubocop -v $rubocop_version
gem install rubocop-performance -v $rubocop_performance_version
gem install rubocop-minitest -v $rubocop_minitest_version
- name: Run Rubocop
run: rubocop --except Metrics