diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 677c885b..fe933c48 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,5 +8,32 @@ on: jobs: spec: + strategy: + fail-fast: false + matrix: + ruby_version: + - '2.7' + - '3.2' uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main" secrets: "inherit" + with: + ruby_version: ${{ matrix.ruby_version }} + + acceptance: + needs: spec + strategy: + fail-fast: false + matrix: + ruby_version: + - '2.7' + - '3.2' + include: + - ruby_version: '2.7' + puppet_version: '~> 7.0' + - ruby_version: '3.2' + puppet_version: '~> 8.0' + uses: "puppetlabs/cat-github-actions/.github/workflows/gem_acceptance.yml@main" + secrets: "inherit" + with: + ruby_version: ${{ matrix.ruby_version }} + puppet_version: ${{ matrix.puppet_version }} diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 64154daa..e334cfa6 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -7,5 +7,32 @@ on: jobs: spec: + strategy: + fail-fast: false + matrix: + ruby_version: + - '2.7' + - '3.2' uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main" secrets: "inherit" + with: + ruby_version: ${{ matrix.ruby_version }} + + acceptance: + needs: spec + strategy: + fail-fast: false + matrix: + ruby_version: + - '2.7' + - '3.2' + include: + - ruby_version: '2.7' + puppet_version: '~> 7.0' + - ruby_version: '3.2' + puppet_version: '~> 8.0' + uses: "puppetlabs/cat-github-actions/.github/workflows/gem_acceptance.yml@main" + secrets: "inherit" + with: + ruby_version: ${{ matrix.ruby_version }} + puppet_version: ${{ matrix.puppet_version }} diff --git a/puppetlabs_spec_helper.gemspec b/puppetlabs_spec_helper.gemspec index f41967b3..6fc8bc76 100644 --- a/puppetlabs_spec_helper.gemspec +++ b/puppetlabs_spec_helper.gemspec @@ -30,7 +30,7 @@ Gem::Specification.new do |spec| spec.add_runtime_dependency 'mocha', '~> 1.0' spec.add_runtime_dependency 'pathspec', '>= 0.2', '< 2.0.0' - spec.add_runtime_dependency 'puppet-lint', '>= 3.0.0' + spec.add_runtime_dependency 'puppet-lint', '~> 4.0' spec.add_runtime_dependency 'puppet-syntax', '~> 3.0' spec.add_runtime_dependency 'rspec-github', '~> 2.0' spec.add_runtime_dependency 'rspec-puppet', '>= 2.0'