-
Notifications
You must be signed in to change notification settings - Fork 597
51 lines (51 loc) · 1.52 KB
/
7.17.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: 7.17
on:
push:
branches:
- 7.17
pull_request:
branches:
- 7.17
jobs:
test-ruby:
env:
TEST_ES_SERVER: http://localhost:9250
PORT: 9250
strategy:
fail-fast: false
matrix:
ruby: [ '3.0', '3.1', '3.2', 'jruby-9.3', 'jruby-9.4' ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Increase system limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: 7.17-SNAPSHOT
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Build and test with Rake
run: |
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev
ruby -v
rake bundle:clean
rake bundle:install
- name: elasticsearch
run: cd elasticsearch && bundle exec rake test:all
- name: elasticsearch-transport faraday1
run: cd elasticsearch-transport && bundle install && bundle exec rake test:faraday1:all
env:
BUNDLE_GEMFILE: 'Gemfile-faraday1.gemfile'
- name: elasticsearch-transport faraday2
run: cd elasticsearch-transport && bundle exec rake test:all
- name: elasticsearch-api
run: cd elasticsearch-api && bundle exec rake test:spec
- name: elasticsearch-xpack
run: cd elasticsearch-xpack && bundle exec rake test:unit test:spec