Skip to content

Commit c74988c

Browse files
committed
(MODULES-10945) Do not install PDK when running PR tests
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.
1 parent 0272b4f commit c74988c

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

.github/workflows/daily_unit_tests_with_nightly_puppet_gem.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
run: |
5353
git config --global core.longpaths true
5454
bundle config set system 'true'
55+
bundle config set --local without 'release'
5556
${{ matrix.env_set_cmd }}PUPPET_GEM_VERSION=$(ruby -e 'puts /puppet\s+\((.+)\)/.match(`gem list -eld puppet`)[1]')
5657
bundle update --jobs 4 --retry 3
5758

.github/workflows/static_code_analysis.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
- name: Prepare testing environment with bundler
3131
run: |
3232
git config --global core.longpaths true
33+
bundle config set --local without 'release'
3334
bundle update --jobs 4 --retry 3
3435
3536
- name: Run commits check

.github/workflows/unit_tests_with_nightly_puppet_gem.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
run: |
5555
git config --global core.longpaths true
5656
bundle config set system 'true'
57+
bundle config set --local without 'release'
5758
${{ matrix.env_set_cmd }}PUPPET_GEM_VERSION=$(ruby -e 'puts /puppet\s+\((.+)\)/.match(`gem list -eld puppet`)[1]')
5859
bundle update --jobs 4 --retry 3
5960

.github/workflows/unit_tests_with_released_puppet_gem.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
run: |
4444
git config --global core.longpaths true
4545
bundle config set system 'true'
46+
bundle config set --local without 'release'
4647
bundle update --jobs 4 --retry 3
4748
4849
- name: Run unit tests

Gemfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ group :development do
3838
gem "github_changelog_generator", require: false, git: 'https://github.com/skywinder/github-changelog-generator', ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018' if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')
3939
end
4040

41+
group :release do
42+
gem "puppet-blacksmith", '~> 3.4', require: false
43+
gem "pdk", platforms: [:ruby]
44+
end
45+
4146
puppet_version = ENV['PUPPET_GEM_VERSION']
4247
facter_version = ENV['FACTER_GEM_VERSION']
4348
hiera_version = ENV['HIERA_GEM_VERSION']

0 commit comments

Comments
 (0)