From efe29ac39bc5c445609472e5858b989773f52fa5 Mon Sep 17 00:00:00 2001 From: Peter Goldstein Date: Wed, 2 Feb 2022 14:59:33 -0800 Subject: [PATCH 1/2] Migrate to GitHub Actions --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ jsonapi-deserializable.gemspec | 6 +++--- spec/spec_helper.rb | 3 --- 3 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..19b19c9 --- /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, 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' From 92dd4840928abb6b4f5c9132fdab84b06d8e95fa Mon Sep 17 00:00:00 2001 From: Peter Goldstein Date: Sun, 29 Jan 2023 22:09:38 -0500 Subject: [PATCH 2/2] Add Ruby 3.2 to CI --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 19b19c9..c3d1dc7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - ruby: [2.6, 2.7, '3.0', 3.1, ruby-head] + ruby: [2.6, 2.7, '3.0', 3.1, 3.2, ruby-head] steps: - uses: actions/checkout@master