diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 304763f..fbf5857 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: env: BUNDLE_WITHOUT: release - name: Build gem - run: gem build *.gemspec + run: gem build --strict --verbose *.gemspec - name: Publish gem to rubygems.org run: gem push *.gem env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 60ba696..df68d59 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -57,6 +57,8 @@ jobs: bundler-cache: true - name: Run tests run: bundle exec rake + - name: Build gem + run: gem build --strict --verbose *.gemspec tests: needs: diff --git a/puppet-syntax.gemspec b/puppet-syntax.gemspec index dce8de0..d180977 100644 --- a/puppet-syntax.gemspec +++ b/puppet-syntax.gemspec @@ -18,11 +18,11 @@ Gem::Specification.new do |spec| spec.required_ruby_version = '>= 2.7' - spec.add_dependency 'puppet', '>= 7' - spec.add_dependency 'rake' + spec.add_dependency 'puppet', '>= 7', '< 9' + spec.add_dependency 'rake', '~> 13.1' - spec.add_development_dependency 'pry' - spec.add_development_dependency 'rb-readline' + spec.add_development_dependency 'pry', '~> 0.14.2' + spec.add_development_dependency 'rb-readline', '~> 0.5.5' spec.add_development_dependency 'voxpupuli-rubocop', '~> 2.4.0' end