Skip to content

Commit

Permalink
Add cypress installation
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
peterzhuamazon committed May 25, 2023
1 parent 0a1da7b commit 4d37d2f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packer/scripts/windows/scoop-install-commons.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@ $yarnVersion = (curl.exe -s -o- $JSON_BASE | yq.exe -r '.engines.yarn')
$yarnVersion
volta install yarn@$yarnVersion
yarn --version
$cypressVersionList = "5.6.0", "9.5.4", "12.13.0"
Foreach ($cypressVersion in $cypressVersionList)
{
$cypressVersion
volta install "cypress@$cypressVersion"
cypress --version
}
$userenv2 = [System.Environment]::GetEnvironmentVariable("Path", [System.EnvironmentVariableTarget]::User)
$nodePathFixed = "C:\\Users\\Administrator\\scoop\\persist\\volta\\appdata\\bin"
[System.Environment]::SetEnvironmentVariable("PATH", $userenv2 + ";$nodePathFixed", [System.EnvironmentVariableTarget]::User)
Expand Down

0 comments on commit 4d37d2f

Please sign in to comment.