Skip to content

Commit 973834d

Browse files
committed
[CI] Adds GitHub Action for 7.x to 8.x compatibility
1 parent 7c098a6 commit 973834d

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/7.x-8.x.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: 7.x with 8.x
2+
on:
3+
push:
4+
branches:
5+
- 7.x
6+
pull_request:
7+
branches:
8+
- 7.x
9+
jobs:
10+
test-ruby:
11+
env:
12+
TEST_ES_SERVER: http://localhost:9250
13+
PORT: 9250
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
ruby: [ 3.0 ]
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Increase system limits
22+
run: |
23+
sudo swapoff -a
24+
sudo sysctl -w vm.swappiness=1
25+
sudo sysctl -w fs.file-max=262144
26+
sudo sysctl -w vm.max_map_count=262144
27+
- uses: elastic/elastic-github-actions/elasticsearch@master
28+
with:
29+
stack-version: 8.0.0-SNAPSHOT
30+
- uses: ruby/setup-ruby@v1
31+
with:
32+
ruby-version: ${{ matrix.ruby }}
33+
- name: Build and test with Rake
34+
run: |
35+
sudo apt-get update
36+
sudo apt-get install libcurl4-openssl-dev
37+
ruby -v
38+
rake bundle:clean
39+
rake bundle:install
40+
- name: elasticsearch
41+
run: cd elasticsearch && bundle exec rake test:all

0 commit comments

Comments
 (0)