diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c3d1dc7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: CI + +on: [push, pull_request] + +jobs: + ruby_rails_test_matrix: + runs-on: ubuntu-latest + + strategy: + matrix: + ruby: [2.6, 2.7, '3.0', 3.1, 3.2, ruby-head] + + steps: + - uses: actions/checkout@master + + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true # 'bundle install' and cache + - name: Runs code QA and tests + run: bundle exec rake diff --git a/jsonapi-deserializable.gemspec b/jsonapi-deserializable.gemspec index 2452d71..2e423f8 100644 --- a/jsonapi-deserializable.gemspec +++ b/jsonapi-deserializable.gemspec @@ -14,7 +14,7 @@ Gem::Specification.new do |spec| spec.files = Dir['README.md', 'lib/**/*'] spec.require_path = 'lib' - spec.add_development_dependency 'rake', '~> 11.3' - spec.add_development_dependency 'rspec', '~> 3.4' - spec.add_development_dependency 'codecov', '~> 0.1' + spec.add_development_dependency 'rake', '>= 11.3' + spec.add_development_dependency 'rspec', '~> 3.4' + spec.add_development_dependency 'simplecov', '~> 0.21' end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 95576cd..acd8053 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,7 +1,4 @@ require 'simplecov' SimpleCov.start -require 'codecov' -SimpleCov.formatter = SimpleCov::Formatter::Codecov - require 'jsonapi/deserializable'