Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Commit 633ab01

Browse files
committed
test: test on ruby 3
1 parent eddb836 commit 633ab01

File tree

7 files changed

+385
-62
lines changed

7 files changed

+385
-62
lines changed

.github/docker-compose-ci.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/elasticsearch.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/run_tests.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,17 @@ jobs:
1313
runs-on: ubuntu-20.04
1414
strategy:
1515
matrix:
16-
ruby-version: ['2.5.7']
16+
ruby-version:
17+
- 2.5.7
18+
- 3.0.4
1719
mongodb-version: ['4.2.14']
20+
include:
21+
- ruby-version: 2.5.7
22+
gemfile: Gemfile
23+
allow-failure: false
24+
- ruby-version: 3.0.4
25+
gemfile: Gemfile3
26+
allow-failure: true
1827
env:
1928
SEARCH_SERVER_ES7: http://localhost:9200
2029
MONGOHQ_URL: mongodb://localhost:27017/cs_comments_service_test
@@ -23,6 +32,7 @@ jobs:
2332
RACK_ENV: staging
2433
SINATRA_ENV: staging
2534
API_KEY: password
35+
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
2636
services:
2737
elasticsearch:
2838
image: elasticsearch:7.8.0
@@ -55,3 +65,4 @@ jobs:
5565

5666
- name: Run tests
5767
run: bin/rspec -fd
68+
continue-on-error: ${{ matrix.allow-failure }}

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
source 'https://rubygems.org'
2-
ruby "~> 2.5.7"
2+
ruby "2.5.7"
33

44
gem 'pry'
55
gem 'pry-nav'

Gemfile3

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
source 'https://rubygems.org'
2+
ruby "~> 3.0"
3+
4+
gem 'pry'
5+
gem 'pry-nav'
6+
7+
# Use with command-line debugging, but not RubyMine
8+
#gem 'debugger'
9+
10+
gem 'bundler'
11+
12+
gem 'rake', '~> 12.3.3'
13+
14+
gem 'sinatra'
15+
gem 'sinatra-param', '~> 1.4'
16+
17+
gem 'yajl-ruby', '~> 1.3.1'
18+
19+
gem 'activemodel', '~> 6.0.3.1'
20+
gem 'protected_attributes_continued'
21+
22+
gem 'mongoid'
23+
gem 'bson'
24+
gem 'bson_ext'
25+
26+
gem 'delayed_job'
27+
gem 'delayed_job_mongoid'
28+
29+
gem "enumerize"
30+
gem 'mongoid-tree', :git => 'https://github.com/edx/mongoid-tree'
31+
gem 'rs_voteable_mongo', '~> 1.3'
32+
gem 'mongoid_magic_counter_cache'
33+
34+
# Before updating will_paginate version, we need to make sure that property 'total_entries'
35+
# exists otherwise use updated property name to fetch total collection count in lib/helpers.rb's
36+
# function 'handle_threads_query'.
37+
gem 'will_paginate_mongoid', "~>2.0"
38+
gem 'rdiscount'
39+
gem 'nokogiri', "~> 1.8.1"
40+
41+
gem 'elasticsearch', '~> 7.8.0'
42+
gem 'elasticsearch-model', '~> 7.1.0'
43+
44+
gem 'dalli'
45+
46+
gem 'rest-client'
47+
48+
gem 'rubyzip', '~> 1.2.2'
49+
50+
gem 'ffi', '~> 1.9.24'
51+
52+
gem 'faye-websocket', '~> 0.11.0'
53+
54+
gem 'addressable', '~> 2.8.0'
55+
56+
gem 'activesupport', '~> 6.0.3.1'
57+
58+
gem 'rack-protection', '~> 1.5.5'
59+
60+
group :test do
61+
gem 'codecov', :require => false
62+
gem 'mongoid_cleaner', '~> 1.2.0'
63+
gem 'factory_girl', '~> 4.0'
64+
gem 'faker', '~> 1.6'
65+
gem 'guard'
66+
gem 'guard-unicorn'
67+
gem 'rack-test', :require => 'rack/test'
68+
gem 'rspec', '~> 3.6.0'
69+
gem 'rspec-its'
70+
gem 'rspec-collection_matchers'
71+
gem 'webmock', '~> 3.0.1'
72+
end
73+
74+
group 'newrelic_rpm' do
75+
gem 'newrelic_rpm'
76+
end
77+
78+
gem 'unicorn'
79+
gem "rack-timeout"
80+
gem "i18n"
81+
gem "rack-contrib", :git => 'https://github.com/rack/rack-contrib.git', :ref => '6ff3ca2b2d988911ca52a2712f6a7da5e064aa27'
82+
83+
84+
gem "timecop", "~> 0.9.5"

0 commit comments

Comments
 (0)