Switch to Github CI.

This commit is contained in:
Stas SUȘCOV 2020-01-06 14:42:10 +00:00 committed by Stas
parent 2172e40892
commit eb8460fd74
2 changed files with 28 additions and 3 deletions

27
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: CI
on: [push]
jobs:
tests:
runs-on: ubuntu-18.04
strategy:
matrix:
ruby: [2.4, 2.5, 2.6]
steps:
- uses: actions/checkout@master
- name: Sets up the Ruby version
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Sets up the environment
run: |
sudo apt-get install libsqlite3-dev
gem install -q bundler
bundle install
- name: Runs code QA and tests
run: rspec

View File

@ -12,9 +12,7 @@ Dir[File.dirname(__FILE__) + '/shared/examples/*.rb'].each {|file| require file
RSpec.configure do |config|
config.include RSpec::Benchmark::Matchers
if ENV['TRAVIS'] == 'true' || ENV['TRAVIS'] == true
config.filter_run_excluding performance: true
end
config.filter_run_excluding performance: ENV['BENCHMARK'].blank?
end
Oj.optimize_rails