Skip to content

Bump actions/checkout from 3.5.3 to 3.6.0 (#126) #277

Bump actions/checkout from 3.5.3 to 3.6.0 (#126)

Bump actions/checkout from 3.5.3 to 3.6.0 (#126) #277

Workflow file for this run

name: Rubocop
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- name: Set up Ruby
uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939
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