Skip to content

Commit b1af115

Browse files
committed
[CI] Adds GitHub Actions
1 parent 099b681 commit b1af115

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/main.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: main
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
jobs:
10+
test-main:
11+
env:
12+
TEST_ES_SERVER: http://localhost:9250
13+
PORT: 9250
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
ruby: [ '2.6', '2.7', '3.0', '3.1', 'jruby-9.3' ]
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
34+
run: |
35+
sudo apt-get update
36+
bundle install
37+
- name: elasticsearch-dsl
38+
run: bundle exec rake test:all

0 commit comments

Comments
 (0)