https://github.com/atrakic/terraform-test-workflow
A reusable Github Actions workflow to test terraform IaC.
https://github.com/atrakic/terraform-test-workflow
github-actions infrastructure-as-code test-automation
Last synced: 9 months ago
JSON representation
A reusable Github Actions workflow to test terraform IaC.
- Host: GitHub
- URL: https://github.com/atrakic/terraform-test-workflow
- Owner: atrakic
- License: mit
- Created: 2024-12-04T19:47:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-09T17:42:13.000Z (10 months ago)
- Last Synced: 2025-09-09T21:02:43.711Z (10 months ago)
- Topics: github-actions, infrastructure-as-code, test-automation
- Language: HCL
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# terraform-test-workflow
[](https://github.com/atrakic/terraform-test-workflow/actions/workflows/ci.yml)
> A reusable Github Actions workflow to test IaC.
# Example usage
```
name: terraform test
on:
workflow_dispatch: # allows manual trigger
push:
pull_request:
branches: [main]
jobs:
terraform-test-workflow:
uses: atrakic/terraform-test-workflow/.github/workflows/tf-reusable-workflow.yml@main
with:
working_directory: ./tf
runs_on: ubuntu-latest
environment: dev
terraform_version: "~>1.0"
terraform_fmt_enabled: true
terraform_fmt_check: false
terraform_test_enabled: true
terraform_test_args: null ## eg. "-var 'foo=bar' -filter=tests/mock_plan.tftest.hcl"
```