mirror of
https://github.com/hashicorp/packer.git
synced 2026-10-04 21:53:18 -04:00
Merge Clone and run steps cause it doesn't look like CDing into hpats directory works
This commit is contained in:
@@ -75,16 +75,15 @@ jobs:
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ${{ needs.get-go-version.outputs.go-version }}
|
||||
- name: Clone HPATS
|
||||
- name: Set HCP Access Token
|
||||
run: |
|
||||
export HCP_ACCESS_TOKEN=$(curl --silent --request POST --header "Content-Type: application/json" --data '{"audience": "https://api.hashicorp.cloud","grant_type": "client_credentials","client_id": "'"$AUTH0_CLIENT_ID"'","client_secret": "'"$AUTH0_CLIENT_SECRET"'"}' "${AUTH0_HOST}/oauth/token" | jq '.access_token' --raw-output)
|
||||
- name: Clone & Run HPATS
|
||||
run: |
|
||||
eval `ssh-agent -s` && ssh-add - <<< '${{ secrets.HPATS_ACCESS_TOKEN }}'
|
||||
git clone [email protected]:hashicorp/hcp-packer-acceptance-tests
|
||||
cd hcp-packer-acceptance-tests
|
||||
- name: Set HCP Access Token
|
||||
run: |
|
||||
export HCP_ACCESS_TOKEN=$(curl --silent --request POST --header "Content-Type: application/json" --data '{"audience": "https://api.hashicorp.cloud","grant_type": "client_credentials","client_id": "'"$AUTH0_CLIENT_ID"'","client_secret": "'"$AUTH0_CLIENT_SECRET"'"}' "${AUTH0_HOST}/oauth/token" | jq '.access_token' --raw-output)
|
||||
- name: Run HPATS
|
||||
run: make test
|
||||
make test
|
||||
# Send a slack notification if one of the jobs defined above fails
|
||||
slack-notify:
|
||||
needs:
|
||||
|
||||
Reference in New Issue
Block a user