Skip to content

Commit 3d9a85e

Browse files
committed
chore: fix CI for sqlite deprecation issue "sqlite3-1.6.0-x86_64-linux requires ruby version >= 2.7, < 3.3.dev"
1 parent 504e41c commit 3d9a85e

File tree

8 files changed

+227
-153
lines changed

8 files changed

+227
-153
lines changed

.github/workflows/ruby.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
build:
1111
name: Tests and Code Style
1212
runs-on: ubuntu-latest
13+
continue-on-error: ${{ matrix.ruby == '2.6' && matrix.rails == '6' }}
1314
strategy:
1415
matrix:
1516
ruby: [2.6]
@@ -21,6 +22,10 @@ jobs:
2122
rails: 6
2223
- ruby: '3.0'
2324
rails: 7
25+
- ruby: '3.1'
26+
rails: 7
27+
- ruby: '2.6'
28+
rails: 6
2429
exclude: # rails 6 requires ruby >= 2.5
2530
- ruby: 2.4
2631
rails: 6
@@ -37,10 +42,18 @@ jobs:
3742
- name: Install bundler
3843
env:
3944
GEMFILE_PATH: gemfiles/Gemfile_${{ matrix.rails }}
45+
GEMFILE_PATH_RUBY: gemfiles/Gemfile_${{ matrix.rails }}_${{matrix.ruby}}
4046
RAILS_V: ${{ matrix.rails }}
4147
run: |
4248
rm -f Gemfile.lock && rm -f Gemfile
43-
cp $GEMFILE_PATH ./Gemfile
49+
echo "...Looking for $GEMFILE_PATH_RUBY"
50+
if [ -f "$GEMFILE_PATH_RUBY" ]; then
51+
echo "......using Gemfile $GEMFILE_PATH_RUBY"
52+
cp $GEMFILE_PATH_RUBY ./Gemfile
53+
else
54+
echo "......using Gemfile $GEMFILE_PATH"
55+
cp $GEMFILE_PATH ./Gemfile
56+
fi
4457
bundler_v='2.1.4'
4558
if [ $RAILS_V = "4" ]; then bundler_v="1.16.6"; fi
4659
gem install bundler -v "~> $bundler_v"

Gemfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ source "https://rubygems.org"
22

33
gem 'rubocop', '~> 1.6.0', require: false
44
gem 'bunny' # rabbit-mq
5-
gem 'google-cloud-pubsub', '> 2.0' # google pub/sub
5+
gem 'google-cloud-pubsub', '>= 1.9.2' # google pub/sub
66
gem 'ruby-kafka' # kafka pub/sub
77

88
group :test do
99
gem 'database_cleaner-active_record'
10+
gem 'sqlite3', '<= 1.3.13'
1011
end
1112

1213
# Specify your gem's dependencies in pub_sub_model_sync.gemspec

0 commit comments

Comments
 (0)