docs: move testing philosophy to docs folder #73
Workflow file for this run
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: Default Plan Unit Tests | |
on: | |
push: | |
branches: ['**'] # '*' will cause the workflow to run on all commits to all branches. | |
jobs: | |
go-tests: | |
name: Default Plan Unit Tests | |
runs-on: ubuntu-latest | |
environment: terraformSecrets | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Build Docker Image | |
run: docker build -t viya4-iac-azure:terratest -f Dockerfile.terratest . | |
- name: Run Tests | |
working-directory: test | |
run: | | |
docker run \ | |
-e TF_VAR_subscription_id=$TF_VAR_subscription_id \ | |
-e TF_VAR_tenant_id=$TF_VAR_tenant_id \ | |
-e TF_VAR_client_id=$TF_VAR_client_id \ | |
-e TF_VAR_client_secret=$TF_VAR_client_secret \ | |
viya4-iac-azure:terratest -v | |
env: | |
# TF ENVIRONMENT | |
TF_VAR_subscription_id: "${{ secrets.TF_VAR_SUBSCRIPTION_ID }}" | |
TF_VAR_tenant_id: "${{ secrets.TF_VAR_TENANT_ID }}" | |
TF_VAR_client_id: "${{ secrets.TF_VAR_CLIENT_ID }}" | |
TF_VAR_client_secret: "${{ secrets.TF_VAR_CLIENT_SECRET }}" |