refactor: Update Terraform directory setup for parallelism #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Refactor the SetupTerraformDirForParallelism function to use the new tfdir
package for calculating the relative path to the git repo root. This
improves the code readability and maintainability.
feat: Add functions to validate Terraform files and directories
Introduce new functions in the validation package to check if a directory
contains Terraform files with specific extensions and if a directory is a
valid Terraform module directory. These functions enhance the validation
capabilities for Terraform configurations.
feat: Add IsAGitRepository function
Include a new function in the utils package to determine if a directory
is a git repository. This function verifies the presence of a .git
directory within the provided path, enhancing the git repository
detection process.
fix: Update test file for scenario with retry options
Adjust the test file for scenarios with retry options to include the
correct package import for the tfdir package, ensuring the test
functionality remains consistent.