Added Acceptance tests using VMaaS repo directly #4
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
name: GitHub Actions CI | |
on: [push, pull_request] | |
env: | |
HPEGL_IAM_SERVICE_URL: ${{ secrets.VMAAS_HPEGL_IAM_SERVICE_URL }} | |
HPEGL_TENANT_ID: ${{ secrets.VMAAS_HPEGL_TENANT_ID }} | |
HPEGL_USER_SECRET: ${{ secrets.VMAAS_HPEGL_USER_SECRET }} | |
HPEGL_USER_ID: ${{ secrets.VMAAS_HPEGL_USER_ID }} | |
HPEGL_VMAAS_API_URL: ${{ secrets.VMAAS_HPEGL_VMAAS_API_URL }} | |
HPEGL_VMAAS_LOCATION: ${{ secrets.VMAAS_HPEGL_VMAAS_LOCATION }} | |
HPEGL_VMAAS_SPACE_NAME: ${{ secrets.VMAAS_HPEGL_VMAAS_SPACE_NAME}} | |
jobs: | |
acc: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
go: [ '1.19' ] | |
name: Acceptance Tests | |
steps: | |
- name: Check out my other private repo | |
uses: actions/checkout@master | |
with: | |
repository: HewlettPackard/hpegl-vmaas-terraform-resources | |
- name: Install dependencies | |
run: | | |
sudo apt-get install -y wget jq | |
wget https://releases.hashicorp.com/terraform/1.0.0/terraform_1.0.0_linux_amd64.zip | |
sudo unzip -fo terraform_1.0.0_linux_amd64.zip -d /usr/local/bin | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.19 | |
- name: Run Acceptance Tests | |
run: make tools && make acceptance |