@@ -12,30 +12,25 @@ jobs:
1212 strategy :
1313 fail-fast : false
1414 matrix :
15- ruby : ['2.4 ', '2.5', '2.6 ', '2.7 ', '3.0 ', jruby-head, truffleruby-head]
16- redis : ['4 ']
17- search : [['opensearch-ruby:2.1 .0', 'opensearchproject/opensearch:2.2.1 ']]
15+ ruby : ['3.1 ', '3.2 ', '3.3 ', '3.4 ', jruby-head, truffleruby-head]
16+ redis : ['5 ']
17+ search : [['opensearch-ruby:3.4 .0', 'opensearchproject/opensearch:2.19.5 ']]
1818 include :
19- # Redis 3
20- - ruby : ' 2.7'
21- redis : ' 3'
22- search : ['opensearch-ruby:2.1.0', 'opensearchproject/opensearch:2.2.1']
23- # Opensearch 1.0
24- - ruby : ' 2.7'
19+ # Redis 4
20+ - ruby : ' 3.4'
2521 redis : ' 4'
26- search : ['opensearch-ruby:1.0.1', 'opensearchproject/opensearch:1.0.1']
27- # Elasticsearch 7.13
28- - ruby : ' 2.7'
29- redis : ' 4'
30- search : ['elasticsearch:7.13.3', 'elasticsearch:7.13.4']
31- # Redis 5
32- - ruby : ' 2.7'
22+ search : ['opensearch-ruby:3.4.0', 'opensearchproject/opensearch:2.19.5']
23+ # OpenSearch 3.x
24+ - ruby : ' 3.4'
3325 redis : ' 5'
34- search : ['opensearch-ruby:2.1.0', 'opensearchproject/opensearch:2.2.1']
35- # Ruby 2.3 & Elasticsearch 7.5
36- - ruby : ' 2.3'
37- redis : ' 4'
38- search : ['elasticsearch:7.5.0', 'elasticsearch:7.13.4']
26+ search : ['opensearch-ruby:3.4.0', 'opensearchproject/opensearch:3.0.0']
27+ # Elasticsearch 7.17 (last release of the pre-8 transport API
28+ # that the Faulty patch currently targets). ES 8+ moves the
29+ # transport into the `elastic-transport` gem under
30+ # `Elastic::Transport`, which the patch does not yet support.
31+ - ruby : ' 3.4'
32+ redis : ' 5'
33+ search : ['elasticsearch:7.17.11', 'elasticsearch:7.17.28']
3934 services :
4035 redis :
4136 image : redis
4843 env :
4944 discovery.type : single-node
5045 plugins.security.disabled : ${{ contains(matrix.search[1], 'opensearch') && 'true' || '' }}
46+ xpack.security.enabled : ${{ contains(matrix.search[1], 'elasticsearch') && 'false' || '' }}
47+ # OpenSearch 2.12+ requires an initial admin password for the
48+ # security demo installer (which still runs even with
49+ # `plugins.security.disabled=true`). Skip the demo config
50+ # entirely so we don't have to set a placeholder password.
51+ # Older OpenSearch and all Elasticsearch images ignore this.
52+ DISABLE_INSTALL_DEMO_CONFIG : ' true'
5153 options : >-
5254 --health-cmd="curl http://localhost:9200/_cluster/health"
5355 --health-interval=3s
5961 SEARCH_GEM : ${{ matrix.search[0] }}
6062
6163 steps :
62- - uses : actions/checkout@v3
64+ - uses : actions/checkout@v4
6365 - uses : ruby/setup-ruby@v1
6466 with :
6567 ruby-version : ${{ matrix.ruby }}
@@ -70,39 +72,39 @@ jobs:
7072 env :
7173 MYSQL_USER : root
7274 MYSQL_PASSWORD : root
73- - uses : codecov/codecov-action@v3
74- if : matrix.ruby == '2.7 '
75+ - uses : codecov/codecov-action@v5
76+ if : matrix.ruby == '3.4 '
7577 with :
7678 files : coverage/coverage.xml
7779
7880 rubocop :
7981 runs-on : ubuntu-latest
8082 steps :
81- - uses : actions/checkout@v3
83+ - uses : actions/checkout@v4
8284 - uses : ruby/setup-ruby@v1
8385 with :
84- ruby-version : ' 2.7 '
86+ ruby-version : ' 3.4 '
8587 bundler-cache : true
8688 - run : bundle exec rubocop
8789
8890 yard :
8991 runs-on : ubuntu-latest
9092 steps :
91- - uses : actions/checkout@v3
93+ - uses : actions/checkout@v4
9294 - uses : ruby/setup-ruby@v1
9395 with :
94- ruby-version : ' 2.7 '
96+ ruby-version : ' 3.4 '
9597 bundler-cache : true
9698 - run : bin/yardoc --fail-on-warning
9799
98100 check_version :
99101 runs-on : ubuntu-latest
100102 if : startsWith(github.ref, 'refs/tags/v')
101103 steps :
102- - uses : actions/checkout@v3
104+ - uses : actions/checkout@v4
103105 - uses : ruby/setup-ruby@v1
104106 with :
105- ruby-version : ' 2.7 '
107+ ruby-version : ' 3.4 '
106108 bundler-cache : true
107109 - run : bin/check-version
108110
@@ -111,7 +113,7 @@ jobs:
111113 if : startsWith(github.ref, 'refs/tags/v')
112114 runs-on : ubuntu-latest
113115 steps :
114- - uses : actions/checkout@v2
116+ - uses : actions/checkout@v4
115117 - uses : dawidd6/action-publish-gem@v1
116118 with :
117119 api_key : ${{secrets.RUBYGEMS_API_KEY}}
0 commit comments