Skip to content

Commit 6dc1e17

Browse files
authored
Merge pull request net-ssh#931 from net-ssh/ci-330-rc1
chore(ci): fix bundler on older rubies and add 3.3.0-rc1
2 parents 22f1f59 + 1c74b13 commit 6dc1e17

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-22.04
88
strategy:
99
matrix:
10-
ruby-version: [2.6.10, 2.7.7, 3.0.6, 3.1.3, 3.2.1]
10+
ruby-version: [2.6.10, 2.7.7, 3.0.6, 3.1.3, 3.2.1, '3.3.0-rc1']
1111
steps:
1212
- uses: actions/checkout@v3
1313

@@ -39,13 +39,14 @@ jobs:
3939
${{ runner.os }}-pip-v1
4040
- name: Bundle install
4141
run: |
42-
gem install bundler
42+
gem install bundler ${{ (startsWith(matrix.ruby-version, '2.6.') || startsWith(matrix.ruby-version, '2.7.')) && '-v 2.4.22' || '' }}
4343
bundle config set path 'vendor/bundle'
4444
bundle config set --local path 'vendor/bundle'
4545
bundle install --jobs 4 --retry 3 --path vendor/bundle
4646
BUNDLE_GEMFILE=./Gemfile.noed25519 bundle install --jobs 4 --retry 3 --path vendor/bundle
4747
env:
4848
BUNDLE_PATH: vendor/bundle
49+
4950

5051
- name: Add to etc/hosts
5152
run: |

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
ARG RUBY_VERSION=3.1
22
FROM ruby:${RUBY_VERSION}
33

4+
ARG BUNDLERV=
5+
46
RUN apt update && apt install -y openssh-server sudo netcat-openbsd \
57
&& useradd --create-home --shell '/bin/bash' --comment 'NetSSH' 'net_ssh_1' \
68
&& useradd --create-home --shell '/bin/bash' --comment 'NetSSH' 'net_ssh_2' \
@@ -20,7 +22,7 @@ COPY Gemfile net-ssh.gemspec $INSTALL_PATH/
2022

2123
COPY lib/net/ssh/version.rb $INSTALL_PATH/lib/net/ssh/version.rb
2224

23-
RUN gem install bundler && bundle install
25+
RUN gem install bundler ${BUNDLERV} && bundle install
2426

2527
COPY . $INSTALL_PATH/
2628

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def change_version(&block)
6565

6666
new_pre = result[:pre]
6767
new_tiny = result[:tiny] || tiny
68-
found = {pre: false, tiny: false}
68+
found = { pre: false, tiny: false }
6969
File.open("#{version_file}.new", "w") do |f|
7070
File.readlines(version_file).each do |line|
7171
match =
@@ -118,7 +118,7 @@ namespace :vbump do
118118
end
119119

120120
desc "Increment prerelease"
121-
task :pre, [:type] do |t, args|
121+
task :pre, [:type] do |_t, args|
122122
change_version do |pre:, tiny:|
123123
puts " PRE => #{pre.inspect}"
124124
match = /^([a-z]+)(\d+)/.match(pre)

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ services:
1616
context: .
1717
args:
1818
RUBY_VERSION: 2.7
19+
BUNDLERV: "-v 2.2.28"
1920
ruby-2.6:
2021
build:
2122
context: .
2223
args:
2324
RUBY_VERSION: 2.6
25+
BUNDLERV: "-v 2.4.22"

0 commit comments

Comments
 (0)