]> gitweb.fluxo.info Git - puppet-sshkeys_core.git/commitdiff
(MODULES-10945) Do not install PDK when running PR tests
authorGabriel Nagy <gabriel.nagy@puppet.com>
Thu, 18 Feb 2021 13:53:50 +0000 (15:53 +0200)
committerGabriel Nagy <gabriel.nagy@puppet.com>
Thu, 18 Feb 2021 14:20:59 +0000 (16:20 +0200)
Create a separate group in the Gemfile for pdk and puppet-blacksmith
which are only used for releasing. In the workflow, avoid installing the
release group.

.github/workflows/daily_unit_tests_with_nightly_puppet_gem.yaml
.github/workflows/static_code_analysis.yaml
.github/workflows/unit_tests_with_nightly_puppet_gem.yaml
.github/workflows/unit_tests_with_released_puppet_gem.yaml
Gemfile

index 5bd0f50b7fac62ef72e8ef165d2463bbd60480c3..34c169d121923b15d23aae813d13199f3a665cc1 100644 (file)
@@ -52,6 +52,7 @@ jobs:
         run: |
           git config --global core.longpaths true
           bundle config set system 'true'
+          bundle config set --local without 'release'
           ${{ matrix.env_set_cmd }}PUPPET_GEM_VERSION=$(ruby -e 'puts /puppet\s+\((.+)\)/.match(`gem list -eld puppet`)[1]')
           bundle update --jobs 4 --retry 3
 
index 0a1f42741c05aa8dc0740b726ea901744b439d6a..89c2cd434f0d5c313efcd2ae130ce5d21a67773f 100644 (file)
@@ -30,6 +30,7 @@ jobs:
       - name: Prepare testing environment with bundler
         run: |
           git config --global core.longpaths true
+          bundle config set --local without 'release'
           bundle update --jobs 4 --retry 3
 
       - name: Run commits check
index 0b1afc020f1a62a986b6a7094662be64690e5843..8fad5ef07de53a6559253499482ad5524356fc4b 100644 (file)
@@ -54,6 +54,7 @@ jobs:
         run: |
           git config --global core.longpaths true
           bundle config set system 'true'
+          bundle config set --local without 'release'
           ${{ matrix.env_set_cmd }}PUPPET_GEM_VERSION=$(ruby -e 'puts /puppet\s+\((.+)\)/.match(`gem list -eld puppet`)[1]')
           bundle update --jobs 4 --retry 3
 
index 11ddefea670cc42dfb23b6602964263faeac80a9..61b7b4cf4ac98742fd7f00079d6a4019ec8874f1 100644 (file)
@@ -43,6 +43,7 @@ jobs:
         run: |
           git config --global core.longpaths true
           bundle config set system 'true'
+          bundle config set --local without 'release'
           bundle update --jobs 4 --retry 3
 
       - name: Run unit tests
diff --git a/Gemfile b/Gemfile
index dd48fccece8a1c8ba82504d91f5086cfb202bcfe..6cc31afa8186931c013725681689594bdb23e584 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -46,8 +46,11 @@ group :system_tests do
   gem "beaker-hostgenerator"
   gem "beaker-rspec"
   gem "beaker-puppet", *location_for(ENV['BEAKER_PUPPET_VERSION'] || '~> 1.0')
-  gem "pdk", '~> 1.18',                                                          platforms: [:ruby]
+end
+
+group :release do
   gem "puppet-blacksmith", '~> 3.4',                                             require: false
+  gem "pdk",                                                                     platforms: [:ruby]
 end
 
 puppet_version = ENV['PUPPET_GEM_VERSION']