diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..7912573 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,23 @@ +--- +name: CI + +on: + pull_request: + push: + branches: + - 'master' + - '*-stable' + +concurrency: + group: ${{ github.ref_name }}-${{ github.workflow }} + cancel-in-progress: true + +jobs: + rubocop: + name: Rubocop + uses: theforeman/actions/.github/workflows/rubocop.yml@v0 + + test: + name: Ruby + needs: rubocop + uses: theforeman/actions/.github/workflows/smart_proxy_plugin.yml@v0 diff --git a/Gemfile b/Gemfile index 727fbd8..713e47c 100644 --- a/Gemfile +++ b/Gemfile @@ -14,7 +14,8 @@ group :test do gem 'mocha', '~> 1' gem 'rack-test' gem 'rake', '~> 13' - gem 'smart_proxy', :git => 'https://github.com/theforeman/smart-proxy', :branch => 'develop' + gem 'smart_proxy', :git => 'https://github.com/theforeman/smart-proxy', + :branch => ENV.fetch('SMART_PROXY_BRANCH', 'develop') gem 'test-unit', '~> 3' gem 'webmock', '~> 3' end diff --git a/smart_proxy_pulp.gemspec b/smart_proxy_pulp.gemspec index ce46973..3724c86 100644 --- a/smart_proxy_pulp.gemspec +++ b/smart_proxy_pulp.gemspec @@ -11,12 +11,12 @@ Gem::Specification.new do |gem| gem.email = ['dmitri@redhat.com'] gem.homepage = "https://github.com/theforeman/smart-proxy-pulp-plugin" gem.summary = 'Basic Pulp support for Foreman Smart-Proxy' - gem.description = 'Basic Pulp support for Foreman Smart-Proxy' + gem.description = 'Plugin for Basic Pulp support for Foreman Smart-Proxy' gem.files = Dir['{bundler.d,lib,settings.d}/**/*', 'LICENSE', 'Gemfile'] gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) gem.require_paths = ["lib"] - gem.license = 'GPL-3.0' + gem.license = 'GPL-3.0-only' gem.required_ruby_version = '>= 2.7', '< 4' end