Skip to main content
Latest Documentation
This is the latest documentation for the Cloud Posse Reference Architecture. To determine which version you're currently using, please see Version Identification.
Version: Latest

GitHub Action: terratest

A GitHub Action to run Terratest tests and post the results as a build artifact.

Usage

  name: Pull Request
on:
pull_request:
branches: [ 'main' ]
types: [opened, synchronize, reopened, closed, labeled, unlabeled]

jobs:
context:
runs-on: ubuntu-latest
steps:
- name: Run Terratest
uses: cloudposse/github-action-terratest@main
with:
sourceDir: test/src

Inputs

NameDescriptionDefaultRequired
sourceDirThe directory containing the source code to test.true