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 ac4945e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 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,10 @@
warn 'Skipping metadata validation; the metadata-json-lint gem was not found'
end
end

if File.exist?('REFERENCE.md')
Rake::Task['strings:validate:reference'].invoke
end
end

task :metadata do
Expand Down

0 comments on commit ac4945e

Please sign in to comment.