-
Notifications
You must be signed in to change notification settings - Fork 797
48 lines (48 loc) · 1.29 KB
/
7x_tests.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
name: 7x tests
on:
push:
branches:
- 7.x
pull_request:
branches:
- 7.x
workflow_dispatch:
branches:
- '*'
jobs:
tests:
env:
TEST_ES_SERVER: http://localhost:9200
RAILS_VERSIONS: '5.0,6.0'
strategy:
fail-fast: false
matrix:
ruby: [ '2.6', '2.7', '3.0' ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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.x-SNAPSHOT
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Bundle
run: |
sudo apt-get install libsqlite3-dev
gem install bundler -v 2.4.22
bundle install
bundle exec rake bundle:clean
bundle exec rake bundle:install
- name: Test elasticsearch-rails
run: cd elasticsearch-rails && bundle exec rake test:all
- name: Test elasticsearch-persistence
run: cd elasticsearch-persistence && bundle exec rake test:all
- name: Test elasticsearch-model
run: cd elasticsearch-model && bundle exec rake test:all