-
Notifications
You must be signed in to change notification settings - Fork 11
44 lines (44 loc) · 1.07 KB
/
main.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
name: Integration
on:
push:
branches:
- "*"
paths-ignore:
- 'README.md'
pull_request:
branches:
- "*"
paths-ignore:
- 'README.md'
jobs:
test-opensearch:
env:
TEST_OPENSEARCH_SERVER: https://localhost:9200
PORT: 9200
strategy:
fail-fast: false
matrix:
ruby: [ 2.4, 2.5, 2.6, 2.7, '3.0', 3.1, 3.2, jruby-9.3 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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: ./.github/actions/opensearch
with:
cluster-version: latest
disable-security: true
- 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
bundle install
rake test:all