diff options
| author | Luchi <39198766+luchihoratiu@users.noreply.github.com> | 2021-02-18 17:03:27 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-18 17:03:27 +0200 | 
| commit | f93d4b33c0a7147346909260ee10129090c1714a (patch) | |
| tree | abc23842d730a93cabf44e679b52d6a784a711d4 | |
| parent | 6202369c2b8668115386c9d7c77ec8eaf82fa017 (diff) | |
| parent | 9ce7f4840d884b8f9113b6c9e27892a87e338cfe (diff) | |
| download | puppet-hosts_core-f93d4b33c0a7147346909260ee10129090c1714a.tar.gz puppet-hosts_core-f93d4b33c0a7147346909260ee10129090c1714a.tar.bz2  | |
Merge pull request #27 from GabrielNagy/MODULES-10945/gemfile-updates
(MODULES-10945) Core module spring cleaning 2021
| -rw-r--r-- | .github/workflows/daily_unit_tests_with_nightly_puppet_gem.yaml | 5 | ||||
| -rw-r--r-- | .github/workflows/static_code_analysis.yaml | 3 | ||||
| -rw-r--r-- | .github/workflows/unit_tests_with_nightly_puppet_gem.yaml | 5 | ||||
| -rw-r--r-- | .github/workflows/unit_tests_with_released_puppet_gem.yaml | 7 | ||||
| -rw-r--r-- | Gemfile | 10 | 
5 files changed, 17 insertions, 13 deletions
diff --git a/.github/workflows/daily_unit_tests_with_nightly_puppet_gem.yaml b/.github/workflows/daily_unit_tests_with_nightly_puppet_gem.yaml index 5bd0f50..d027aa4 100644 --- a/.github/workflows/daily_unit_tests_with_nightly_puppet_gem.yaml +++ b/.github/workflows/daily_unit_tests_with_nightly_puppet_gem.yaml @@ -11,10 +11,8 @@ jobs:      strategy:        matrix:          os: [ 'ubuntu-18.04', 'macos-10.15', 'windows-2016' ] -        puppet_version: [ 5, 6, 7 ] +        puppet_version: [ 6, 7 ]          include: -          - puppet_version: 5 -            ruby: 2.4            - puppet_version: 6              ruby: 2.5            - puppet_version: 7 @@ -52,6 +50,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 diff --git a/.github/workflows/static_code_analysis.yaml b/.github/workflows/static_code_analysis.yaml index 0a1f427..9a132eb 100644 --- a/.github/workflows/static_code_analysis.yaml +++ b/.github/workflows/static_code_analysis.yaml @@ -12,7 +12,7 @@ jobs:      name: Run checks      env: -      ruby_version: 2.5 +      ruby_version: 2.6        extra_checks: check:symlinks check:git_ignore check:dot_underscore check:test_file      runs-on: 'ubuntu-18.04' @@ -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 diff --git a/.github/workflows/unit_tests_with_nightly_puppet_gem.yaml b/.github/workflows/unit_tests_with_nightly_puppet_gem.yaml index 0b1afc0..e2122bd 100644 --- a/.github/workflows/unit_tests_with_nightly_puppet_gem.yaml +++ b/.github/workflows/unit_tests_with_nightly_puppet_gem.yaml @@ -13,10 +13,8 @@ jobs:      strategy:        matrix:          os: [ 'ubuntu-18.04', 'macos-10.15', 'windows-2016' ] -        puppet_version: [ 5, 6, 7 ] +        puppet_version: [ 6, 7 ]          include: -          - puppet_version: 5 -            ruby: 2.4            - puppet_version: 6              ruby: 2.5            - puppet_version: 7 @@ -54,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 diff --git a/.github/workflows/unit_tests_with_released_puppet_gem.yaml b/.github/workflows/unit_tests_with_released_puppet_gem.yaml index 11ddefe..bd157f3 100644 --- a/.github/workflows/unit_tests_with_released_puppet_gem.yaml +++ b/.github/workflows/unit_tests_with_released_puppet_gem.yaml @@ -13,12 +13,12 @@ jobs:      strategy:        matrix:          os: [ 'ubuntu-18.04', 'macos-10.15', 'windows-2016' ] -        puppet_version: [ 5, 6 ] +        puppet_version: [ 6, 7 ]          include: -          - puppet_version: 5 -            ruby: 2.4            - puppet_version: 6              ruby: 2.5 +          - puppet_version: 7 +            ruby: 2.7            - os: 'ubuntu-18.04'              os_type: 'Linux' @@ -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 @@ -37,17 +37,21 @@ group :development do    gem "puppet-strings",                                          require: false    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')  end +  group :system_tests do -  gem "puppet-module-posix-system-r#{minor_version}",                            require: false, platforms: [:ruby] -  gem "puppet-module-win-system-r#{minor_version}",                              require: false, platforms: [:mswin, :mingw, :x64_mingw] +  gem "puppet-module-posix-system-r#{minor_version}", '~> 0.5',                  require: false, platforms: [:ruby] +  gem "puppet-module-win-system-r#{minor_version}", '~> 0.5',                    require: false, platforms: [:mswin, :mingw, :x64_mingw]    gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 4')    gem "beaker-abs", *location_for(ENV['BEAKER_ABS_VERSION'] || '~> 0.5')    gem "beaker-pe",                                                               require: false    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']  | 
