Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ruby 3.1 and 3.2 to test matrix #29

Merged
merged 4 commits into from
Jan 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ jobs:
ci:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version:
- '2.7'
- '3.0'
- '3.1'
- '3.2'
bundler-version:
- '2.1'
- '2.2'
Expand All @@ -37,6 +40,6 @@ jobs:
- name: Run tests
run: bundle exec rake
- name: Report code coverage
if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.0' && matrix.bundler-version == '2.4' }}
if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.2' && matrix.bundler-version == '2.4' }}
continue-on-error: true
uses: paambaati/codeclimate-action@v3.0.0
6 changes: 3 additions & 3 deletions bundler-inject.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "bundler"
spec.add_development_dependency "colorize"
spec.add_development_dependency "manageiq-style"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "simplecov", ">= 0.21.2"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "simplecov", ">= 0.21.2"
end
12 changes: 6 additions & 6 deletions spec/bundler_inject_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -261,14 +261,14 @@
bundle(:check)

expect(out).to eq "The Gemfile's dependencies are satisfied\n"
expect(err).to be_empty
expect(err).to_not match %r{^\*\* override_gem}
end

it "bundle exec" do
bundle("exec #{exec_command}")

expect(out).to eq %Q{[["ansi", "1.4.3"], ["omg", "0.0.6"], ["rubytest", "0.7.0"]]\n}
expect(err).to be_empty
expect(err).to_not match %r{^\*\* override_gem}
end
end

Expand All @@ -288,14 +288,14 @@
bundle(:check)

expect(out).to eq "The Gemfile's dependencies are satisfied\n"
expect(err).to match %r{\A\*\* override_gem\("ansi", "=1.4.2"\) at .+/bundler\.d/local_overrides\.rb:1\n\z}
expect(err).to match %r{^\*\* override_gem\("ansi", "=1.4.2"\) at .+/bundler\.d/local_overrides\.rb:1\n$}
end

it "bundle exec" do
bundle("exec #{exec_command}")

expect(out).to eq %Q{[["ansi", "1.4.2"], ["omg", "0.0.6"], ["rubytest", "0.7.0"]]\n}
expect(err).to match %r{\A\*\* override_gem\("ansi", "=1.4.2"\) at .+/bundler\.d/local_overrides\.rb:1\n\z}
expect(err).to match %r{^\*\* override_gem\("ansi", "=1.4.2"\) at .+/bundler\.d/local_overrides\.rb:1\n$}
end
end

Expand All @@ -315,14 +315,14 @@
bundle(:check)

expect(out).to eq "The Gemfile's dependencies are satisfied\n"
expect(err).to match %r{\A\*\* override_gem\("ansi", "=1.4.2"\) at .+/\.bundler\.d/global_overrides\.rb:1\n\z}
expect(err).to match %r{^\*\* override_gem\("ansi", "=1.4.2"\) at .+/\.bundler\.d/global_overrides\.rb:1\n$}
end

it "bundle exec" do
bundle("exec #{exec_command}")

expect(out).to eq %Q{[["ansi", "1.4.2"], ["omg", "0.0.6"], ["rubytest", "0.7.0"]]\n}
expect(err).to match %r{\A\*\* override_gem\("ansi", "=1.4.2"\) at .+/\.bundler\.d/global_overrides\.rb:1\n\z}
expect(err).to match %r{^\*\* override_gem\("ansi", "=1.4.2"\) at .+/\.bundler\.d/global_overrides\.rb:1\n$}
end
end
end
Expand Down