-
Notifications
You must be signed in to change notification settings - Fork 798
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71b5c31
commit 9958799
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Ruby 3.0 | ||
on: | ||
push: | ||
branches: | ||
- 8.x | ||
pull_request: | ||
branches: | ||
- 8.x | ||
jobs: | ||
tests: | ||
env: | ||
TEST_ES_SERVER: http://localhost:9200 | ||
RAILS_VERSIONS: '6.0' | ||
strategy: | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- 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: 6.8.12 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.0 | ||
- name: Bundle | ||
run: | | ||
sudo apt-get install libsqlite3-dev | ||
gem install bundler | ||
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 |