Skip to content

Commit

Permalink
(MAINT) Testing versions
Browse files Browse the repository at this point in the history
  • Loading branch information
chelnak committed May 25, 2023
1 parent aa393ac commit ffe850a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
- "3.2"
include:
- ruby_version: '2.7'
puppet_version: '~> 7.0'
puppet_version: '7.0'
- ruby_version: '3.2'
puppet_version: '~> 8.0'
puppet_version: '8.0'
name: "acceptance (ruby ${{ matrix.ruby_version }} | ${{ matrix.os }})"
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_acceptance.yml@main"
secrets: "inherit"
Expand Down
7 changes: 5 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,15 @@ end
namespace :acceptance do
desc 'Run acceptance tests against current code'

ENV['PDK_PUPPET_VERSION'] = ENV.fetch('PUPPET_VERSION', '7')
task :env do
ENV['PDK_PUPPET_VERSION'] = RUBY_VERSION.split('.')[0].include?('3') ? '8' : '7'
end

RSpec::Core::RakeTask.new(:local) do |t|
t.rspec_opts = '--tag ~package' # Exclude package specific examples
t.pattern = 'spec/acceptance/**/*_spec.rb'
end
task local: [:binstubs]
task local: [:binstubs, :env]

task local_parallel: [:binstubs] do
require 'parallel_tests'
Expand Down

0 comments on commit ffe850a

Please sign in to comment.