diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index a509ab8c..c5313a55 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -19,15 +19,18 @@ jobs: ruby_version: ${{ steps.ruby_version.outputs.versions }} steps: - uses: actions/checkout@v5 + - id: ruby_version + uses: voxpupuli/ruby-version@v1 + - id: min_ruby + run: echo "version=$(echo '${{ steps.ruby_version.outputs.versions }}' | jq -r '.[-1]')" >> $GITHUB_OUTPUT - name: Setup Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + # Use the minimum supported Ruby version for rubocop (last in descending list) + ruby-version: ${{ steps.min_ruby.outputs.version }} bundler-cache: true - name: Run rubocop run: bundle exec rubocop - - id: ruby_version - uses: voxpupuli/ruby-version@v1 test: runs-on: ubuntu-latest diff --git a/.rubocop.yml b/.rubocop.yml index be83e32c..247b7c21 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -33,3 +33,6 @@ Metrics/ModuleLength: Style/LambdaCall: Enabled: false + +Gemspec/RequiredRubyVersion: + Enabled: false diff --git a/dynflow.gemspec b/dynflow.gemspec index c6922d2b..39856899 100644 --- a/dynflow.gemspec +++ b/dynflow.gemspec @@ -18,7 +18,7 @@ Gem::Specification.new do |s| s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") s.require_paths = ["lib"] - s.required_ruby_version = '>= 2.7.0' + s.required_ruby_version = '>= 3.0.0' s.add_dependency "algebrick", '~> 0.7.0' s.add_dependency "concurrent-ruby", '~> 1.1.3'