diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml new file mode 100644 index 0000000..d3e60f2 --- /dev/null +++ b/.github/workflows/ruby.yml @@ -0,0 +1,25 @@ +--- +name: CI + +on: # yamllint disable-line rule:truthy + pull_request: + push: + branches: + - master + +concurrency: + group: ${{ github.ref_name }} + cancel-in-progress: true + +jobs: + rubocop: + name: Rubocop + uses: theforeman/actions/.github/workflows/rubocop.yml@v0 + + test: + name: Tests + needs: rubocop + uses: theforeman/actions/.github/workflows/test-gem.yml@v0 + with: + command: bundle exec rake test +... diff --git a/.rubocop.yml b/.rubocop.yml index 02f4830..1296a34 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -6,7 +6,7 @@ require: AllCops: NewCops: enable - TargetRubyVersion: 2.5 + TargetRubyVersion: 2.7 Exclude: - 'extra/**/*.rb' - 'vendor/**/*' diff --git a/smart_proxy_dns_infoblox.gemspec b/smart_proxy_dns_infoblox.gemspec index e346a8d..937c013 100644 --- a/smart_proxy_dns_infoblox.gemspec +++ b/smart_proxy_dns_infoblox.gemspec @@ -9,12 +9,12 @@ Gem::Specification.new do |s| s.homepage = 'https://github.com/theforeman/smart_proxy_dns_infoblox' s.summary = "Infoblox DNS provider plugin for Foreman's smart proxy" - s.description = "Infoblox DNS provider plugin for Foreman's smart proxy" + s.description = "Infoblox DNS provider plugin for Foreman's smart proxy." s.files = Dir['{config,lib,bundler.d}/**/*'] + ['README.md', 'LICENSE'] s.test_files = Dir['test/**/*'] - s.required_ruby_version = '>= 2.5' + s.required_ruby_version = '>= 2.7' s.add_runtime_dependency('infoblox', '~> 3.0') end