From c46b32e3e5f85c1ab52c94f42d14e8f511bd9ebd Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Sun, 28 Jul 2024 13:14:37 +0200 Subject: [PATCH] CI: Add official foreman CI jobs Signed-off-by: Tim Meusel --- .github/workflows/test.yml | 7 +++++++ .rubocop.yml | 1 - foreman_hdm.gemspec | 6 +----- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0a7fc52..a91264e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,10 +46,17 @@ jobs: - name: Verify gem builds run: gem build --strict --verbose *.gemspec + foremanci: + name: Foreman Plugin tests + uses: theforeman/actions/.github/workflows/foreman_plugin.yml@v0 + with: + plugin: foreman_hdm + tests: needs: - rubocop - test + - foremanci runs-on: ubuntu-latest name: Test suite steps: diff --git a/.rubocop.yml b/.rubocop.yml index 43c0256..4bed7cd 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -2,7 +2,6 @@ require: - rubocop-performance - rubocop-rails - rubocop-minitest - - rubocop-rake AllCops: DisplayStyleGuide: true diff --git a/foreman_hdm.gemspec b/foreman_hdm.gemspec index 5f3cb53..5ad5a5d 100644 --- a/foreman_hdm.gemspec +++ b/foreman_hdm.gemspec @@ -18,9 +18,5 @@ Gem::Specification.new do |s| s.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6' s.add_development_dependency 'rdoc', '~> 6.5' - s.add_development_dependency 'rubocop', '~> 1.52', '>= 1.52.1' - s.add_development_dependency 'rubocop-minitest', '~> 0.35.0' - s.add_development_dependency 'rubocop-performance', '~> 1.18' - s.add_development_dependency 'rubocop-rails', '~> 2.19', '>= 2.19.1' - s.add_development_dependency 'rubocop-rake', '~> 0.6.0' + s.add_development_dependency 'theforeman-rubocop', '~> 0.1.2' end