Skip to content

Commit

Permalink
Fix cross_repo for node_js repositories
Browse files Browse the repository at this point in the history
NodeJS repositories were running bin/setup plus npm install which was
causing failures.
  • Loading branch information
agrare committed Apr 26, 2024
1 parent f108722 commit a229878
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/manageiq/cross_repo/runner/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ def defaults
"node_js" => {
"language" => "node_js",
"node_js" => ["18"],
"install" => "npm install",
"script" => "npm test"
"install" => "yarn",
"script" => "yarn run test"
},
"ruby" => {
"language" => "ruby",
Expand Down
2 changes: 1 addition & 1 deletion lib/manageiq/cross_repo/runner/github.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def ci_config
result = {"language" => language}

result["before_install"] = steps_by_name["Set up system"]["run"] if steps_by_name["Set up system"]
result["before_script"] = steps_by_name["Prepare tests"]["run"] if steps_by_name["Prepare tests"]
result["install"] = steps_by_name["Prepare tests"]["run"] if steps_by_name["Prepare tests"]
result["script"] = steps_by_name["Run tests"]["run"] if steps_by_name["Run tests"]

result
Expand Down

0 comments on commit a229878

Please sign in to comment.