The actions
folder is designed to house reusable GitHub Actions for Terraform, making it easy to manage and share automation across different repositories. See the Example folder to get started.
actions/
├── terraform-checks/
│ ├── action.yml
│ ├── scripts/ (if any)
│ └── README.md
Location: actions/terraform-checks
Purpose: The Terraform Github Action checks your code fits the Oak standards.
- Infrastructure Management: Streamlines Terraform commands in CI/CD pipelines.
- Ease of Use: Integrates seamlessly with your GitHub workflows.
# Example Github Workflow file to run Terraform Check action
name: Terraform Checks
on: [push, pull_request]
jobs:
example-job:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run Terraform Action from oak-terraform-actions
uses: oaknational/oak-terraform-actions/actions/terraform-checks/action.yml@main
For more details, visit the Oak Terraform Actions repository.
We're using husky to create pre-commit hooks with commitlint and the conventional commit plugin.
# Example commit that passes
fix(docs): improving documentation