Skip to content

Commit

Permalink
GHA Integration tests Review Changes (#2403)
Browse files Browse the repository at this point in the history
Fix GitHub Action tests and upgrade golang

- Upgrade go from 1.18 to 1.19

Co-authored-by: Al Berez <aberezovsky@vmware.com>
  • Loading branch information
gururajsh and a-b authored Apr 14, 2023
1 parent 96231f9 commit 7c6c07e
Show file tree
Hide file tree
Showing 5 changed files with 310 additions and 427 deletions.
16 changes: 12 additions & 4 deletions .github/win/integrations/integration-tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $Env:PATH="$Env:HOME\go\bin;" + "$Env:PATH"
$Env:PATH="$Env:GOPATH\bin;" + "$Env:PATH"
$Env:PATH="$Env:GOROOT\bin;" + "$Env:PATH"
$Env:PATH="$pwd;" + "$Env:PATH"
$Env:PATH="$pwd\cli\out;" + "$Env:PATH"
$Env:PATH="$pwd\out;" + "$Env:PATH"

# This is for DEBUG
# function Get-Env-Info {
Expand Down Expand Up @@ -63,15 +63,23 @@ $Env:CF_DIAL_TIMEOUT=15

Import-Certificate -Filepath "$pwd\$CF_INT_NAME.router.ca" -CertStoreLocation "cert:\LocalMachine\root"

pushd $pwd\cf-cli-binaries
7z e cf-cli-windows-binaries.tgz -y
7z x cf-cli-windows-binaries.tar -y
Move-Item -Path $pwd\cf-cli_winx64.exe -Destination ..\cf.exe -Force
popd

New-Item "go/src/code.cloudfoundry.org" -Type Directory
New-Item -ItemType SymbolicLink -Path "$pwd/go/src/code.cloudfoundry.org/cli" -Target "$pwd/cli"
New-Item -ItemType SymbolicLink -Path "$pwd/go/src/code.cloudfoundry.org/cli" -Target "$pwd"

cd go/src/code.cloudfoundry.org/cli

go install github.com/akavel/rsrc@v0.10.2

Get-Command make
Get-Item Makefile

make out/cf-cli_winx64.exe
Move-Item -Path ./out/cf-cli_winx64.exe -Destination ./out/cf.exe -Force
Move-Item -Path $pwd\out\cf-cli_winx64.exe -Destination $pwd\cf.exe -Force

cf.exe api $Env:CF_INT_API --skip-ssl-validation
cf.exe auth admin $Env:CF_INT_PASSWORD
Expand Down
154 changes: 0 additions & 154 deletions .github/workflows/build-cf-cli.yml

This file was deleted.

Loading

0 comments on commit 7c6c07e

Please sign in to comment.