canonical / canonical/workflows-team

`terraform.yaml` workflow should look and work for all modules

Open
#4 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
No language data
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

### Problem statement

Currently, the workflow expects users to pass a [`module-directory`](https://github.com/canonical/workflows-team/blob/main/.github/workflows/terraform.yaml#L9) which will contain the terraform module under test. This is great for repositories with a single module, but in repositories with various, this no longer works.

### Enhancement Proposal

To perform a search from the root or an arbitrary directory to find any Terraform modules and run tests on all the found ones (parallelly).

### What needs to get done?

1. Remove the `module-directory` input
2. Create a tiny script that looks for all modules in a repo or directory
3. Ensure the tests run for all the found modules

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.