Skip to content

Commit

Permalink
Run the strings:validate:reference during validate
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
smortex committed Jun 1, 2022
1 parent 7aae63b commit 3565ca3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/puppetlabs_spec_helper/rake_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,14 @@
warn 'Skipping metadata validation; the metadata-json-lint gem was not found'
end
end

if File.exist?('REFERENCE.md')
if Rake::Task.task_defined?('strings:validate:reference')
Rake::Task['strings:validate:reference'].invoke
else
warn 'Skipping reference documentation validation; the puppet-strings gem was not found'
end
end
end

task :metadata do
Expand Down

0 comments on commit 3565ca3

Please sign in to comment.