This action allows caching Terraform providers to improve workflow execution time.
Create a workflow .yml
file in your repositories .github/workflows
directory. For more information, reference the GitHub Help Documentation for Creating a workflow file.
This action currently caches the following directories:
$HOME/.terraform.d/plugin-cache
(Path where the providers will be installed)
- uses: actions/checkout@v3
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.4.6
- uses: terraform-cache/terraform-cache@v1
- name: Init
run: |
terraform init
Check out Contributing guide for ideas on contributing and setup steps for getting our repositories up.
Licensed under the MIT License.