Skip to content

A platform for community discussion. Free, open, simple.

DEV: Run `yarn install` for all `rake docker:test` invocations (#17844)

David Taylor14cc67c9b244
diff --git a/lib/tasks/docker.rake b/lib/tasks/docker.rake
index ea06541114f..fc942c4ad6e 100644
--- a/lib/tasks/docker.rake
+++ b/lib/tasks/docker.rake
@@ -59,9 +59,9 @@ desc 'Run all tests (JS and code in a standalone environment)'
task 'docker:test' do
begin
@good = true
+ @good &&= run_or_fail("yarn install")
unless ENV['SKIP_LINT']
- @good &&= run_or_fail("yarn install")
puts "Running linters/prettyfiers"
puts "eslint #{`yarn eslint -v`}"
puts "prettier #{`yarn prettier -v`}"
@@ -206,7 +206,6 @@ task 'docker:test' do
unless ENV["RUBY_ONLY"]
js_timeout = ENV["JS_TIMEOUT"].presence || 900_000 # 15 minutes
- @good &&= run_or_fail 'yarn install'
unless ENV["SKIP_CORE"]
@good &&= run_or_fail("cd app/assets/javascripts/discourse && CI=1 yarn ember exam --random")