Skip to content

Commit 3565ca3

Browse files
committed
Run the strings:validate:reference during validate
If the documentation is not up-to-date or is broken, we want the validate task to fail so that we can more quickly detect inconsistencies and fix them early.
1 parent 7aae63b commit 3565ca3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/puppetlabs_spec_helper/rake_tasks.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,14 @@
228228
warn 'Skipping metadata validation; the metadata-json-lint gem was not found'
229229
end
230230
end
231+
232+
if File.exist?('REFERENCE.md')
233+
if Rake::Task.task_defined?('strings:validate:reference')
234+
Rake::Task['strings:validate:reference'].invoke
235+
else
236+
warn 'Skipping reference documentation validation; the puppet-strings gem was not found'
237+
end
238+
end
231239
end
232240

233241
task :metadata do

0 commit comments

Comments
 (0)