Skip to content

Commit 5b4904f

Browse files
authored
2025-01-23 v. 8.2.5.8: updated RuboCop checks on CI
2 parents c6bfbe4 + af14dd3 commit 5b4904f

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/checks.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,23 @@ jobs:
8383
runs-on: ubuntu-latest
8484
steps:
8585
- uses: actions/checkout@v2
86+
- name: Get changed files
87+
id: changed-files
88+
uses: tj-actions/changed-files@v39
89+
with:
90+
files: |
91+
**/*.rb
8692
- name: Set up Ruby
93+
if: steps.changed-files.outputs.any_changed == 'true'
8794
uses: ruby/setup-ruby@v1
8895
with:
8996
ruby-version: ${{ env.RUBY_VERSION }}
9097
- name: Install dependencies
98+
if: steps.changed-files.outputs.any_changed == 'true'
9199
run: bundle install
92100
- name: Run RuboCop
93-
run: bundle exec rake rubocop
101+
if: steps.changed-files.outputs.any_changed == 'true'
102+
run: bundle exec rubocop ${{ steps.changed-files.outputs.all_changed_files }}
94103

95104
tests:
96105
permissions: write-all

leetcode-ruby.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ require 'English'
55
::Gem::Specification.new do |s|
66
s.required_ruby_version = '>= 3.0'
77
s.name = 'leetcode-ruby'
8-
s.version = '8.2.5.7'
8+
s.version = '8.2.5.8'
99
s.license = 'MIT'
1010
s.files = ::Dir['lib/**/*.rb'] + %w[README.md]
1111
s.executable = 'leetcode-ruby'

0 commit comments

Comments
 (0)