File tree 6 files changed +20
-14
lines changed
elasticsearch-persistence
6 files changed +20
-14
lines changed Original file line number Diff line number Diff line change 1
- name : JRuby
1
+ name : JRuby tests
2
2
on :
3
3
push :
4
4
branches :
5
- - main
5
+ - 8.x
6
6
pull_request :
7
7
branches :
8
- - main
8
+ - 8.x
9
9
workflow_dispatch :
10
10
branches :
11
11
- ' *'
12
12
jobs :
13
13
tests :
14
14
env :
15
15
TEST_ES_SERVER : http://localhost:9200
16
- RAILS_VERSIONS : ' 5.0,6.0 '
16
+ RAILS_VERSIONS : ${{ matrix.rails }}
17
17
strategy :
18
18
fail-fast : false
19
+ matrix :
20
+ rails : [ '6.1', '7.0', '7.1' ]
21
+ ruby : ['jruby-9.4']
19
22
runs-on : ubuntu-latest
20
23
steps :
21
- - uses : actions/checkout@v2
24
+ - uses : actions/checkout@v4
22
25
- name : Increase system limits
23
26
run : |
24
27
sudo swapoff -a
@@ -27,13 +30,14 @@ jobs:
27
30
sudo sysctl -w vm.max_map_count=262144
28
31
- uses : elastic/elastic-github-actions/elasticsearch@master
29
32
with :
30
- stack-version : 7.x-SNAPSHOT
33
+ stack-version : 8.14.0-SNAPSHOT
34
+ security-enabled : false
31
35
- uses : ruby/setup-ruby@v1
32
36
with :
33
- ruby-version : jruby-9.3
37
+ ruby-version : ${{ matrix.ruby }}
34
38
- name : Bundle
35
39
run : |
36
- sudo apt-get install libsqlite3-dev
40
+ sudo apt-get install libsqlite3-dev libcurl4-openssl-dev
37
41
gem install bundler
38
42
bundle install
39
43
bundle exec rake bundle:clean
Original file line number Diff line number Diff line change 1
- name : Ruby 3.0
1
+ name : Ruby tests
2
2
on :
3
3
push :
4
4
branches :
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ gem 'pry'
24
24
gem 'rake' , '~> 12'
25
25
26
26
group :development do
27
- gem 'debug'
27
+ gem 'debug' unless defined? ( JRUBY_VERSION )
28
28
gem 'rspec'
29
29
gem 'yard'
30
30
end
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ source 'https://rubygems.org'
21
21
gemspec
22
22
23
23
group :development , :testing do
24
- gem 'debug'
24
+ gem 'debug' unless defined? ( JRUBY_VERSION )
25
25
gem 'pry-nav'
26
26
gem 'rspec'
27
27
end
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ gem 'elasticsearch-model',
25
25
require : false
26
26
27
27
group :development , :testing do
28
- gem 'debug'
28
+ gem 'debug' unless defined? ( JRUBY_VERSION )
29
29
gem 'pry-nav'
30
30
gem 'rspec'
31
31
end
Original file line number Diff line number Diff line change @@ -29,8 +29,10 @@ gem 'elasticsearch-persistence',
29
29
require : false
30
30
31
31
group :development , :testing do
32
- gem 'debug'
33
32
gem 'pry-nav'
34
33
gem 'rspec'
35
- gem 'sqlite3' unless defined? ( JRUBY_VERSION )
34
+ unless defined? ( JRUBY_VERSION )
35
+ gem 'sqlite3'
36
+ gem 'debug'
37
+ end
36
38
end
You can’t perform that action at this time.
0 commit comments