Skip to content

Fix build warning on Ruby 3.3 #68

Fix build warning on Ruby 3.3

Fix build warning on Ruby 3.3 #68

Workflow file for this run

# based on https://github.com/rails/rails/blob/4a78dcb/.github/workflows/rubocop.yml
name: rubocop linting
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
- name: Cache gems
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-rubocop-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-rubocop-
- name: Install gems
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Run rubocop
run: bundle exec rubocop --lint