Skip to content

Perform Validation Tests #17

Perform Validation Tests

Perform Validation Tests #17

Workflow file for this run

name: Perform Validation Tests
on:
workflow_dispatch:
jobs:
test:
name: Run Terratest Validations For Terraform Module
runs-on: ubuntu-latest
if: github.actor == 'RyanDerr'
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5.0.0
with:
go-version: ^1.15
- 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: |
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: go test -json ./test/... | jq -c 'select(.Action=="fail" or .Action=="pass")'