Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Rename rake test tasksRenames rake's test:style to test:mdRenames rak…
Browse files Browse the repository at this point in the history
…e's test:cicd to test:htmlAdds the corresponding aliases to keep the CICD builds green
  • Loading branch information
dshevtsov committed Aug 27, 2019
1 parent a4da7ce commit 3021c40
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rakelib/test.rake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace :test do
task links: %w[build links_no_build]

desc 'Check the entire _site for broken links and invalid HTML'
task :cicd do
task :html do
puts 'Checking links with html-proofer...'.magenta

LinkChecker.check_site
Expand Down Expand Up @@ -41,11 +41,14 @@ namespace :test do
end

desc 'Test Markdown style with mdl'
task :style do
task :md do
puts 'Testing Markdown style with mdl ...'.magenta
output = `bin/mdl --style=_checks/styles/style-rules-prod --ignore-front-matter --git-recurse -- .`
puts output.yellow
abort "The Markdown linter has found #{output.lines.count} issues".red unless output.empty?
puts 'No issues found'.magenta
end

task style: %w[md]
task cicd: %w[html]
end

0 comments on commit 3021c40

Please sign in to comment.