Skip to content

Commit ec0e110

Browse files
committed
[CI] Updates GitHub Actions for JRuby, names
1 parent e42caea commit ec0e110

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

.github/workflows/jruby.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
1-
name: JRuby
1+
name: JRuby tests
22
on:
33
push:
44
branches:
5-
- main
5+
- 8.x
66
pull_request:
77
branches:
8-
- main
8+
- 8.x
99
workflow_dispatch:
1010
branches:
1111
- '*'
1212
jobs:
1313
tests:
1414
env:
1515
TEST_ES_SERVER: http://localhost:9200
16-
RAILS_VERSIONS: '5.0,6.0'
16+
RAILS_VERSIONS: ${{ matrix.rails }}
1717
strategy:
1818
fail-fast: false
19+
matrix:
20+
rails: [ '6.1', '7.0', '7.1' ]
21+
ruby: ['jruby-9.3', 'jruby-9.4']
1922
runs-on: ubuntu-latest
2023
steps:
21-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v4
2225
- name: Increase system limits
2326
run: |
2427
sudo swapoff -a
@@ -27,13 +30,14 @@ jobs:
2730
sudo sysctl -w vm.max_map_count=262144
2831
- uses: elastic/elastic-github-actions/elasticsearch@master
2932
with:
30-
stack-version: 7.x-SNAPSHOT
33+
stack-version: 8.14.0-SNAPSHOT
34+
security-enabled: false
3135
- uses: ruby/setup-ruby@v1
3236
with:
33-
ruby-version: jruby-9.3
37+
ruby-version: ${{ matrix.ruby }}
3438
- name: Bundle
3539
run: |
36-
sudo apt-get install libsqlite3-dev
40+
sudo apt-get install libsqlite3-dev libcurl4-openssl-dev
3741
gem install bundler
3842
bundle install
3943
bundle exec rake bundle:clean

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Ruby 3.0
1+
name: Ruby tests
22
on:
33
push:
44
branches:

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ gem 'pry'
2424
gem 'rake', '~> 12'
2525

2626
group :development do
27-
gem 'debug'
27+
gem 'debug' unless defined?(JRUBY_VERSION)
2828
gem 'rspec'
2929
gem 'yard'
3030
end

0 commit comments

Comments
 (0)