mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 11:51:07 +07:00
Fail fast on composer setup failure
This commit is contained in:
parent
bca2d0b1b0
commit
9e30788903
@ -322,6 +322,7 @@ add_tool() {
|
||||
tool_version=$(get_tool_version "$tool" "$ver_param")
|
||||
add_log "$tick" "$tool" "Added $tool $tool_version"
|
||||
else
|
||||
[ "$tool" = "composer" ] && fail_fast=true
|
||||
add_log "$cross" "$tool" "Could not setup $tool"
|
||||
fi
|
||||
}
|
||||
|
@ -402,6 +402,9 @@ Function Add-Tool() {
|
||||
$tool_version = Get-ToolVersion $tool $ver_param
|
||||
Add-Log $tick $tool "Added $tool $tool_version"
|
||||
} else {
|
||||
if($tool -eq "composer") {
|
||||
$env:fail_fast = 'true'
|
||||
}
|
||||
Add-Log $cross $tool "Could not add $tool"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user