Skip to content

Commit 908abb6

Browse files
authored
Merge pull request #37 from GabrielNagy/MODULES-10945/gemfile-updates
(MODULES-10945) Core module spring cleaning 2021
2 parents 355acb1 + 46422f9 commit 908abb6

File tree

5 files changed

+22
-18
lines changed

5 files changed

+22
-18
lines changed

.github/workflows/daily_unit_tests_with_nightly_puppet_gem.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ 'ubuntu-18.04', 'macos-10.15', 'windows-2016' ]
14-
puppet_version: [ 5, 6, 7 ]
14+
puppet_version: [ 6, 7 ]
1515
include:
16-
- puppet_version: 5
17-
ruby: 2.4
1816
- puppet_version: 6
1917
ruby: 2.5
2018
- puppet_version: 7
@@ -52,6 +50,7 @@ jobs:
5250
run: |
5351
git config --global core.longpaths true
5452
bundle config set system 'true'
53+
bundle config set --local without 'release'
5554
${{ matrix.env_set_cmd }}PUPPET_GEM_VERSION=$(ruby -e 'puts /puppet\s+\((.+)\)/.match(`gem list -eld puppet`)[1]')
5655
bundle update --jobs 4 --retry 3
5756

.github/workflows/static_code_analysis.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: Run checks
1313

1414
env:
15-
ruby_version: 2.5
15+
ruby_version: 2.6
1616
extra_checks: check:symlinks check:git_ignore check:dot_underscore check:test_file
1717

1818
runs-on: 'ubuntu-18.04'
@@ -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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ 'ubuntu-18.04', 'macos-10.15', 'windows-2016' ]
16-
puppet_version: [ 5, 6, 7 ]
16+
puppet_version: [ 6, 7 ]
1717
include:
18-
- puppet_version: 5
19-
ruby: 2.4
2018
- puppet_version: 6
2119
ruby: 2.5
2220
- puppet_version: 7
@@ -54,6 +52,7 @@ jobs:
5452
run: |
5553
git config --global core.longpaths true
5654
bundle config set system 'true'
55+
bundle config set --local without 'release'
5756
${{ matrix.env_set_cmd }}PUPPET_GEM_VERSION=$(ruby -e 'puts /puppet\s+\((.+)\)/.match(`gem list -eld puppet`)[1]')
5857
bundle update --jobs 4 --retry 3
5958

.github/workflows/unit_tests_with_released_puppet_gem.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ 'ubuntu-18.04', 'macos-10.15', 'windows-2016' ]
16-
puppet_version: [ 5, 6 ]
16+
puppet_version: [ 6, 7 ]
1717
include:
18-
- puppet_version: 5
19-
ruby: 2.4
2018
- puppet_version: 6
2119
ruby: 2.5
20+
- puppet_version: 7
21+
ruby: 2.7
2222

2323
- os: 'ubuntu-18.04'
2424
os_type: 'Linux'
@@ -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: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,26 @@ group :development do
3232
gem "json", '= 2.0.4', require: false if Gem::Requirement.create('~> 2.4.2').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
3333
gem "json", '= 2.1.0', require: false if Gem::Requirement.create(['>= 2.5.0', '< 2.7.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
3434
gem "rb-readline", '= 0.5.5', require: false, platforms: [:mswin, :mingw, :x64_mingw]
35-
gem "puppet-module-posix-default-r#{minor_version}", '~> 0.3', require: false, platforms: [:ruby]
36-
gem "puppet-module-win-default-r#{minor_version}", '~> 0.3', require: false, platforms: [:mswin, :mingw, :x64_mingw]
35+
gem "puppet-module-posix-default-r#{minor_version}", '~> 0.4', require: false, platforms: [:ruby]
36+
gem "puppet-module-win-default-r#{minor_version}", '~> 0.4', require: false, platforms: [:mswin, :mingw, :x64_mingw]
37+
gem "puppet-strings", require: false
3738
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')
3839
end
40+
3941
group :system_tests do
40-
gem "puppet-module-posix-system-r#{minor_version}", require: false, platforms: [:ruby]
41-
gem "puppet-module-win-system-r#{minor_version}", require: false, platforms: [:mswin, :mingw, :x64_mingw]
42-
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 4.0')
43-
gem "beaker-puppet", *location_for(ENV['BEAKER_PUPPET_VERSION'] || '~>1.0')
44-
gem "beaker-vmpooler", *location_for(ENV['BEAKER_VMPOOLER_VERSION'] || '~> 1.3')
42+
gem "puppet-module-posix-system-r#{minor_version}", '~> 0.5', require: false, platforms: [:ruby]
43+
gem "puppet-module-win-system-r#{minor_version}", '~> 0.5', require: false, platforms: [:mswin, :mingw, :x64_mingw]
44+
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 4')
4545
gem "beaker-abs", *location_for(ENV['BEAKER_ABS_VERSION'] || '~> 0.5')
4646
gem "beaker-pe", require: false
4747
gem "beaker-hostgenerator"
4848
gem "beaker-rspec"
49-
gem "pdk", '~> 1.18', platforms: [:ruby]
49+
gem "beaker-puppet", *location_for(ENV['BEAKER_PUPPET_VERSION'] || '~> 1.0')
50+
end
51+
52+
group :release do
5053
gem "puppet-blacksmith", '~> 3.4', require: false
54+
gem "pdk", platforms: [:ruby]
5155
end
5256

5357
puppet_version = ENV['PUPPET_GEM_VERSION']

0 commit comments

Comments
 (0)