Switch to Github CI.
This commit is contained in:
parent
2172e40892
commit
eb8460fd74
27
.github/workflows/ci.yml
vendored
Normal file
27
.github/workflows/ci.yml
vendored
Normal 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
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user