terraform-github-actions

terraform-test action

This is one of a suite of Terraform related actions - find them at dflook/terraform-github-actions.

Execute automated tests on a Terraform module using the built-in terraform test command. If the tests fail, the job will stop with a failure status.

Inputs

Outputs

Environment Variables

Example usage

name: "Run Tests"

on: [push]

jobs:
  test:
    name: Unlock
    runs-on: ubuntu-latest
    steps:
      - name: Checkout current branch
        uses: actions/checkout@v4

      - name: Terraform Tests
        uses: dflook/terraform-test@v1
        with:
          path: modules/vpc