Skip to content

Commit

Permalink
Test with multipel versions of json_schemer
Browse files Browse the repository at this point in the history
  • Loading branch information
mkon committed Nov 30, 2023
1 parent 273a998 commit 7a90810
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,19 @@ jobs:
fail-fast: false
matrix:
activesupport: ['6.1', '7.0']
json_schemer: ['2.0', '2.1']
ruby: ['3.0', '3.1', '3.2']
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
ruby-version: '${{ matrix.ruby }}'
bundler-cache: true
cache-version: ${{ matrix.activesupport }}
cache-version: ${{ matrix.activesupport }}-${{ matrix.json_schemer }}
env:
ACTIVESUPPORT: ${{ matrix.activesupport }}
ACTIVESUPPORT: '${{ matrix.activesupport }}'
JSON_SCHEMER: '${{ matrix.json_schemer }}'
- name: Rspec
run: bundle exec rspec

Expand Down
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ end
if (version = ENV['ACTIVESUPPORT'])
gem 'activesupport', "~> #{version}.0"
end
if (version = ENV['JSON_SCHEMER'])
gem 'json_schemer', "~> #{version}.0"
end
2 changes: 1 addition & 1 deletion openapi_contracts.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Gem::Specification.new do |s|
s.files = Dir['lib/**/*', 'README.md']

s.add_dependency 'activesupport', '>= 6.1', '< 8'
s.add_dependency 'json_schemer', '~> 2.1.0'
s.add_dependency 'json_schemer', '>= 2', '< 2.2'
s.add_dependency 'rack', '>= 2.0.0'

s.add_development_dependency 'json_spec', '~> 1.1.5'
Expand Down

0 comments on commit 7a90810

Please sign in to comment.