File tree Expand file tree Collapse file tree 2 files changed +7
-32
lines changed Expand file tree Collapse file tree 2 files changed +7
-32
lines changed Original file line number Diff line number Diff line change 12
12
workflow_dispatch :
13
13
14
14
jobs :
15
+
15
16
ci :
17
+ uses : " puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@maint-generic_gem_task"
18
+ secrets : " inherit"
19
+
20
+ acceptance :
21
+ needs : " ci"
16
22
strategy :
17
23
matrix :
18
24
puppet :
Original file line number Diff line number Diff line change 2
2
3
3
if Bundler . rubygems . find_name ( 'puppet_litmus' ) . any?
4
4
require 'puppet_litmus/rake_tasks'
5
-
6
- # This is a _really_ horrible monkey-patch to fix up https://github.com/puppetlabs/bolt/issues/1614
7
- # Based on resolution https://github.com/puppetlabs/bolt/pull/1620
8
- # This can be removed once this is fixed, released into Bolt and into Litmus
9
- require 'bolt_spec/run'
10
- module BoltSpec
11
- module Run
12
- class BoltRunner
13
- class << self
14
- alias_method :original_with_runner , :with_runner
15
- end
16
-
17
- def self . with_runner ( config_data , inventory_data )
18
- original_with_runner ( deep_duplicate_object ( config_data ) , deep_duplicate_object ( inventory_data ) ) { |runner | yield runner }
19
- end
20
-
21
- # From https://github.com/puppetlabs/pdk/blob/main/lib/pdk/util.rb
22
- # Workaround for https://github.com/puppetlabs/bolt/issues/1614
23
- def self . deep_duplicate_object ( object )
24
- if object . is_a? ( Array )
25
- object . map { |item | deep_duplicate_object ( item ) }
26
- elsif object . is_a? ( Hash )
27
- hash = object . dup
28
- hash . each_pair { |key , value | hash [ key ] = deep_duplicate_object ( value ) }
29
- hash
30
- else
31
- object
32
- end
33
- end
34
- end
35
- end
36
- end
37
5
end
38
6
39
7
require 'puppetlabs_spec_helper/tasks/fixtures'
40
8
require 'bundler/gem_tasks'
41
9
require 'puppet-lint/tasks/puppet-lint'
42
10
43
11
require 'rspec/core/rake_task'
12
+
44
13
RSpec ::Core ::RakeTask . new ( :spec ) do |t |
45
14
t . exclude_pattern = "spec/acceptance/**/*.rb"
46
15
end
You can’t perform that action at this time.
0 commit comments