Skip to content

Commit

Permalink
Chore: Use binstubs in bin/test (#4793)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaoShizhong authored Sep 4, 2024
1 parent d56da91 commit 8179df3
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions bin/test
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
#!/usr/bin/env ruby

results = { 'Rubocop' => false, 'Erblint' => false, 'RSpec' => false, 'Standard' => false }
results = {
'Rubocop' => false,
'Erblint' => false,
'RSpec' => false,
'Standard' => false,
'Stylelint' => false
}
puts "\n== Running linters =="
puts 'Rubocop:'
results['Rubocop'] = system 'bundle exec rubocop'
results['Rubocop'] = system 'bin/rubocop'

puts 'Erblint:'
results['Erblint'] = system 'bundle exec erblint --lint-all'
results['Erblint'] = system 'bin/erblint --lint-all'

puts 'Standard JS:'
results['Standard'] = system 'yarn lintt'
results['Standard'] = system 'yarn lint'

puts 'Stylelint:'
results['Stylelint'] = system 'yarn run stylelint'

puts "\n== Running specs =="
puts 'Rspec:'
results['RSpec'] = system 'bundle exec rspec'
results['RSpec'] = system 'bin/rspec'

puts "\n== Final Results =="
puts results.map {|k,v| "#{k.ljust(7)} #{v == true ? '✅' : '❌' }" }
Expand Down

0 comments on commit 8179df3

Please sign in to comment.