Update Terraform For Auto Upgrades And Kernal Prompts To Hide #26
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: Perform Validation Tests | |
on: | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Run Terratest Validations For Terraform Module | |
runs-on: ubuntu-latest | |
environment: 'TerraformTestApprovals' | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v5.0.0 | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4.0.2 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-east-1 | |
- name: Get dependencies | |
run: | | |
set -e | |
go get -v -t -d ./... | |
if [ -f Gopkg.toml ]; then | |
curl https://github.com/raw/golang/dep/master/install.sh | sh | |
dep ensure | |
fi | |
- name: Run Terratest | |
run: | | |
set -e | |
set -o pipefail | |
go test -json ./test/... | jq -c 'select(.Action=="fail" or .Action=="pass")' |