Skip to content

Commit 02de34b

Browse files
committed
[CI] GitHub Actions: Separate JRuby
1 parent a2c3d34 commit 02de34b

File tree

1 file changed

+22
-12
lines changed

1 file changed

+22
-12
lines changed

.github/workflows/6.x.yml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: 6.x
32
on:
43
push:
@@ -8,23 +7,34 @@ on:
87
branches:
98
- 6.x
109
jobs:
11-
test-6x:
10+
test-ruby:
11+
env:
12+
TEST_ES_SERVER: http://localhost:9200
1213
strategy:
1314
fail-fast: false
1415
matrix:
15-
ruby: [ 2.3, 2.4, 2.5, 2.6, 2.7, jruby ]
16+
ruby: [ 2.3, 2.4, 2.5, 2.6, 2.7 ]
1617
runs-on: ubuntu-latest
1718
steps:
1819
- uses: actions/checkout@v2
19-
- name: Increase system limits
20-
run: |
21-
sudo swapoff -a
22-
sudo sysctl -w vm.swappiness=1
23-
sudo sysctl -w fs.file-max=262144
24-
sudo sysctl -w vm.max_map_count=262144
25-
- uses: elastic/elastic-github-actions/elasticsearch@master
20+
- uses: ruby/setup-ruby@v1
2621
with:
27-
stack-version: 6.8.7
22+
ruby-version: ${{ matrix.ruby }}
23+
- name: Build and test with Rake
24+
run: |
25+
sudo apt-get install libcurl4-openssl-dev
26+
ruby -v
27+
rake bundle:clean
28+
rake bundle:install
29+
rake test:unit
30+
test-jruby:
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
ruby: [ jruby-9.1, jruby-9.2 ]
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v2
2838
- uses: ruby/setup-ruby@v1
2939
with:
3040
ruby-version: ${{ matrix.ruby }}
@@ -34,4 +44,4 @@ jobs:
3444
ruby -v
3545
rake bundle:clean
3646
rake bundle:install
37-
rake test:client
47+
rake test:unit

0 commit comments

Comments
 (0)