5 Commits

Author SHA1 Message Date
sid palas
dead4bda7d turn off terraform wrapper 2021-07-05 19:17:11 -07:00
sid palas
521ce1be1e Specify test path 2021-07-05 19:11:03 -07:00
sid palas
4fd6d96faf add go setup step and execute terratest 2021-07-05 19:01:59 -07:00
sid palas
8e07a9ca52 add comment about route53 zone 2021-07-05 16:43:07 -07:00
sid palas
470941a03d add workflow step to run terratest test 2021-07-05 16:35:48 -07:00

View File

@@ -1,7 +1,7 @@
name: "Terraform"
on:
# Uncomment to enable staging
# Uncomment to enable staging deployment
# push:
# branches:
# - main
@@ -27,6 +27,7 @@ jobs:
uses: hashicorp/setup-terraform@v1
with:
terraform_version: 1.0.1
terraform_wrapper: false
- name: Terraform Format
id: fmt
@@ -39,6 +40,7 @@ jobs:
- name: Terraform Plan
id: plan
if: github.event_name == 'pull_request'
# Route 53 zone must already exist for this to succeed!
run: terraform plan -var db_pass=${{secrets.DB_PASS }} -no-color
continue-on-error: true
@@ -73,6 +75,16 @@ jobs:
if: steps.plan.outcome == 'failure'
run: exit 1
- uses: actions/setup-go@v2
with:
go-version: '^1.15.5'
- name : Terratest Execution
if: github.event_name == 'pull_request'
working-directory: 08-testing/tests/terratest
run: |
go test . -v timeout 10m
- name: Check tag
id: check-tag
run: |