-
Notifications
You must be signed in to change notification settings - Fork 934
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Juan Diego Gonzalez <[email protected]>
- Loading branch information
Juan Diego Gonzalez
committed
Dec 19, 2022
1 parent
080e51f
commit 574f485
Showing
2 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,8 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
path: cli | ||
- name: Set Up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
|
@@ -52,6 +54,8 @@ jobs: | |
- name: Run Integration Tests | ||
if: ${{ !inputs.run-with-client-creds }} | ||
run: | | ||
mkdir -p go/src/code.cloudfoundry.org | ||
ln -s ${PWD}/cli go/src/code.cloudfoundry.org | ||
ENV=$(cat metadata.json | jq -r '.name') | ||
eval "$(bbl print-env --metadata-file ./metadata.json)" | ||
export CF_INT_PASSWORD="$(credhub get -n /bosh-$ENV/cf/cf_admin_password | bosh interpolate --path /value -)" | ||
|
@@ -64,21 +68,25 @@ jobs: | |
export NODES=16 | ||
export GOPATH=$PWD/go | ||
export PATH=$GOPATH/bin:$PATH | ||
go install github.com/onsi/ginkgo/[email protected] | ||
cd $GOPATH/src/code.cloudfoundry.org/cli | ||
go install github.com/onsi/ginkgo/[email protected] | ||
make build | ||
export PATH="$(pwd)/out:$PATH" | ||
export CF_PASSWORD=${CF_INT_PASSWORD} | ||
cf api ${CF_INT_API} --skip-ssl-validation | ||
cf auth | ||
make integration-tests-full-ci | ||
- name: Run Integration Tests with client credentials | ||
if: ${{ inputs.run-with-client-creds }} | ||
env: | ||
CF_INT_CLIENT_ID: 'potato-face' | ||
CF_INT_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} | ||
run: | | ||
mkdir -p go/src/code.cloudfoundry.org | ||
ln -s ${PWD}/cli go/src/code.cloudfoundry.org | ||
ENV=$(cat metadata.json | jq -r '.name') | ||
eval "$(bbl print-env --metadata-file ./metadata.json)" | ||
export CF_INT_PASSWORD="$(credhub get -n /bosh-$ENV/cf/cf_admin_password | bosh interpolate --path /value -)" | ||
|
@@ -91,11 +99,14 @@ jobs: | |
export NODES=16 | ||
export GOPATH=$PWD/go | ||
export PATH=$GOPATH/bin:$PATH | ||
cd $GOPATH/src/code.cloudfoundry.org/cli | ||
go install github.com/onsi/ginkgo/[email protected] | ||
make build | ||
export PATH="$(pwd)/out:$PATH" | ||
export CF_PASSWORD=${CF_INT_PASSWORD} | ||
cf api ${CF_INT_API} --skip-ssl-validation | ||
cf auth | ||
make integration-tests-full-ci |