File tree 5 files changed +16
-58
lines changed
5 files changed +16
-58
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- name : Ruby 2.6
1
+ name : 7x tests
2
2
on :
3
3
push :
4
4
branches :
5
- - main
5
+ - 7.x
6
6
pull_request :
7
7
branches :
8
- - main
8
+ - 7.x
9
9
workflow_dispatch :
10
10
branches :
11
11
- ' *'
16
16
RAILS_VERSIONS : ' 5.0,6.0'
17
17
strategy :
18
18
fail-fast : false
19
+ matrix :
20
+ ruby : [ '2.6', '2.7', '3.0' ]
19
21
runs-on : ubuntu-latest
20
22
steps :
21
- - uses : actions/checkout@v2
23
+ - uses : actions/checkout@v4
22
24
- name : Increase system limits
23
25
run : |
24
26
sudo swapoff -a
@@ -30,11 +32,11 @@ jobs:
30
32
stack-version : 7.x-SNAPSHOT
31
33
- uses : ruby/setup-ruby@v1
32
34
with :
33
- ruby-version : 2.6
35
+ ruby-version : ${{ matrix.ruby }}
34
36
- name : Bundle
35
37
run : |
36
38
sudo apt-get install libsqlite3-dev
37
- gem install bundler
39
+ gem install bundler -v 2.4.22
38
40
bundle install
39
41
bundle exec rake bundle:clean
40
42
bundle exec rake bundle:install
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ name: JRuby
2
2
on :
3
3
push :
4
4
branches :
5
- - main
5
+ - 7.x
6
6
pull_request :
7
7
branches :
8
- - main
8
+ - 7.x
9
9
workflow_dispatch :
10
10
branches :
11
11
- ' *'
16
16
RAILS_VERSIONS : ' 5.0,6.0'
17
17
strategy :
18
18
fail-fast : false
19
+ matrix :
20
+ ruby : [ 'jruby-9.3', 'jruby-9.4' ]
19
21
runs-on : ubuntu-latest
20
22
steps :
21
23
- uses : actions/checkout@v2
@@ -27,13 +29,12 @@ jobs:
27
29
sudo sysctl -w vm.max_map_count=262144
28
30
- uses : elastic/elastic-github-actions/elasticsearch@master
29
31
with :
30
- stack-version : 7.x -SNAPSHOT
32
+ stack-version : 7.17 -SNAPSHOT
31
33
- uses : ruby/setup-ruby@v1
32
34
with :
33
- ruby-version : jruby-9.3
35
+ ruby-version : ${{ matrix.ruby }}
34
36
- name : Bundle
35
37
run : |
36
- sudo apt-get install libsqlite3-dev
37
38
gem install bundler
38
39
bundle install
39
40
bundle exec rake bundle:clean
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ namespace :test do
52
52
puts '-' * 80
53
53
gemfiles . each do |gemfile |
54
54
puts "GEMFILE: #{ gemfile } "
55
+ sh "BUNDLE_GEMFILE='#{ File . expand_path ( "../gemfiles/#{ gemfile } " , __FILE__ ) } ' bundle install"
55
56
sh "BUNDLE_GEMFILE='#{ File . expand_path ( "../gemfiles/#{ gemfile } " , __FILE__ ) } ' " \
56
57
' bundle exec rspec'
57
58
puts '-' * 80
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ gemspec path: '../'
26
26
27
27
gem 'activemodel', '~> 5'
28
28
gem 'activerecord', '~> 5'
29
- gem 'sqlite3' unless defined?(JRUBY_VERSION)
29
+ gem 'sqlite3', '> 1.3', '< 1.4' unless defined?(JRUBY_VERSION)
30
30
gem 'mongoid', '~> 6'
31
31
32
32
group :development, :testing do
You can’t perform that action at this time.
0 commit comments