-
Notifications
You must be signed in to change notification settings - Fork 801
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Migrates tests to GitHub actions, removes Travis CI
- Loading branch information
1 parent
df87fef
commit 2de6778
Showing
9 changed files
with
175 additions
and
97 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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,40 @@ | ||
name: Ruby 2.5 | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
tests: | ||
env: | ||
TEST_ES_SERVER: http://localhost:9200 | ||
RAILS_VERSIONS: '5.0,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: 7.9.0 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.5 | ||
- 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 | ||
run: bundle exec rake test:all | ||
|
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,40 @@ | ||
name: Ruby 2.6 | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
tests: | ||
env: | ||
TEST_ES_SERVER: http://localhost:9200 | ||
RAILS_VERSIONS: '5.0,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: 7.9.0 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.6 | ||
- 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 | ||
run: bundle exec rake test:all | ||
|
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,40 @@ | ||
name: Ruby 2.7 | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
tests: | ||
env: | ||
TEST_ES_SERVER: http://localhost:9200 | ||
RAILS_VERSIONS: '5.0,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: 7.9.0 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
- 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 | ||
run: bundle exec rake test:all | ||
|
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,40 @@ | ||
name: JRuby | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
tests: | ||
env: | ||
TEST_ES_SERVER: http://localhost:9200 | ||
RAILS_VERSIONS: '5.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: 7.9.0 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: jruby-9.2 | ||
- 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 | ||
run: bundle exec rake test:all | ||
|
This file was deleted.
Oops, something went wrong.
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
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