QT-351 - Output Terraform and provider version information in Enos workflows (#2564)

* Add tf core and module version output step

* Add generate step before getting versions
This commit is contained in:
Michael Anthony authored and GitHub committed 2022-10-26 11:48:17 -06:00
1 parent bfd65feb90
commit b5ef8a516b
1 file changed
+16
+16
View File
@@ -136,6 +136,22 @@ jobs:
run: |
unzip ${{steps.download.outputs.download-path}}/*.zip -d enos/support
mv ${{steps.download.outputs.download-path}}/*.zip enos/support/boundary.zip
- name: Output Terraform version info
# Use the same env vars from the following step
env:
ENOS_VAR_aws_region: us-east-1
ENOS_VAR_aws_ssh_keypair_name: enos-ci-ssh-key
ENOS_VAR_aws_ssh_private_key_path: ./support/private_key.pem
ENOS_VAR_local_boundary_dir: ./support/
ENOS_VAR_crt_bundle_path: ./support/boundary.zip
ENOS_VAR_tfc_api_token: ${{ secrets.TF_API_TOKEN }}
ENOS_VAR_test_email: ${{ secrets.SERVICE_USER_EMAIL }}
ENOS_VAR_skip_failing_bats_tests: "true"
run: |
mkdir -p ./enos/terraform-plugin-cache
export ENOS_VAR_enos_user=$GITHUB_ACTOR && \
enos scenario check --chdir ./enos ${{ matrix.filter }} builder:crt && \
enos scenario exec --chdir ./enos ${{ matrix.filter }} builder:crt --cmd "version"
- name: Run Enos scenario
id: run
# Continue once and retry