Skip to content

Commit b552ef5

Browse files
committed
[CI] Adds GitHub Actions in 6.x
1 parent f4b27aa commit b552ef5

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/6.x.yml

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

0 commit comments

Comments
 (0)