Skip to content

Update dependencies and improve CI workflow #50

Update dependencies and improve CI workflow

Update dependencies and improve CI workflow #50

Workflow file for this run

name: Rubocop
on:
pull_request:
env:
RUBY_VERSION: ${{ vars.RUBOCOP_RUBY_VERSION || '3.2' }}
jobs:
rubocop:
name: Run rubocop
runs-on: ubuntu-latest
env:
BUNDLE_ONLY: ${{ vars.RUBOCOP_BUNDLE_ONLY || 'rubocop' }}
steps:
- uses: actions/checkout@v4
- uses: tj-actions/changed-files@v44
id: changed-files
with:
files: |
.github/workflows/rubocop.yml
.rubocop.yml
**.rb
**.arb
bin/*
docs/Gemfile
gemfiles/**/Gemfile
Gemfile*
Rakefile
*.gemspec
- uses: ruby/setup-ruby@v1
if: steps.changed-files.outputs.any_changed == 'true'
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true
- uses: reviewdog/action-rubocop@v2
if: steps.changed-files.outputs.any_changed == 'true'
with:
fail_on_error: true
filter_mode: nofilter # added (default), diff_context, file, nofilter
github_token: ${{ secrets.GITHUB_TOKEN }}
skip_install: true
use_bundler: true