Skip to content

Commit

Permalink
Test multiple versions of graphql gem
Browse files Browse the repository at this point in the history
  • Loading branch information
swalkinshaw committed Dec 17, 2021
1 parent 66a3b07 commit b0fa098
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -11,11 +11,13 @@ jobs:
fail-fast: false
matrix:
ruby: [2.4, 2.7, '3.0']
gemfile: [graphql1.10, graphql1.13, graphql-head]
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- run: bundle install
- run: bundle exec rake
5 changes: 5 additions & 0 deletions gemfiles/graphql-head.gemfile
@@ -0,0 +1,5 @@
source "https://rubygems.org"

gem "graphql", "~> 1.13", "< 3.0"

gemspec path: "../"
5 changes: 5 additions & 0 deletions gemfiles/graphql1.10.gemfile
@@ -0,0 +1,5 @@
source "https://rubygems.org"

gem "graphql", "~> 1.10.0"

gemspec path: "../"
5 changes: 5 additions & 0 deletions gemfiles/graphql1.13.gemfile
@@ -0,0 +1,5 @@
source "https://rubygems.org"

gem "graphql", "~> 1.13.0"

gemspec path: "../"
2 changes: 1 addition & 1 deletion graphql-schema_comparator.gemspec
Expand Up @@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
spec.executables = ["graphql-schema", "schema_comparator"]
spec.require_paths = ["lib"]

spec.add_dependency "graphql", "~> 1.10"
spec.add_dependency "graphql", ">= 1.10", "< 3.0"
spec.add_dependency "thor", ">= 0.19", "< 2.0"
spec.add_dependency "bundler", ">= 1.14"

Expand Down

0 comments on commit b0fa098

Please sign in to comment.