From 1272ff5a30a9a81eaca761f94e177974136c0fec Mon Sep 17 00:00:00 2001 From: Craig Gumbley Date: Thu, 23 Feb 2023 15:18:41 +0000 Subject: [PATCH 1/2] (CONT-339) Lower ruby requirement To make puppet-lint more accessible and usable in Puppet 6 environments, this commit lowers the required Ruby version to 2.5. --- puppet-lint.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/puppet-lint.gemspec b/puppet-lint.gemspec index 324436de..bbc3dcfb 100644 --- a/puppet-lint.gemspec +++ b/puppet-lint.gemspec @@ -32,5 +32,5 @@ Gem::Specification.new do |spec| ] spec.license = 'MIT' - spec.required_ruby_version = Gem::Requirement.new('>= 2.7'.freeze) + spec.required_ruby_version = Gem::Requirement.new('>= 2.5'.freeze) end From 50b76b3000efdfba593b9ed9ba5715e8b9bc31bf Mon Sep 17 00:00:00 2001 From: Craig Gumbley Date: Mon, 20 Feb 2023 16:41:21 +0000 Subject: [PATCH 2/2] (CONT-339) Update CI for ruby 2.5) --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7aed88d8..d085583a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,10 +14,28 @@ on: jobs: spec: + strategy: + fail-fast: false + matrix: + ruby_version: + - '2.5' + - '2.7' + name: "spec (ruby ${{ matrix.ruby_version }})" uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main" secrets: "inherit" + with: + ruby_version: ${{ matrix.ruby_version }} acceptance: + strategy: + fail-fast: false + matrix: + ruby_version: + - '2.5' + - '2.7' + name: "acceptance (ruby ${{ matrix.ruby_version }})" needs: "spec" uses: "puppetlabs/cat-github-actions/.github/workflows/gem_acceptance.yml@main" secrets: "inherit" + with: + ruby_version: ${{ matrix.ruby_version }}