Skip to content

Add tests to verify module structure compliance #922

Closed

Description

Description

Purpose: Ensure that all modules meet the repos module standards.
Specific finding: Modules are added with GitHub workflow, but not the corresponding ADO pipeline.

Add a global test that verifies the contents of modules (new and old alike). This should not be tied to a module's workflow/pipeline, as that is one thing that needs to exist in the first place. Should run successfully on pull_request trigger.

The test should:

  • Identify a module based on a folder for resourceProvider/resourceType under the arm folder (non recurse, not starting with '.*')
  • Each module must meet the following criteria:
    • module folder contains:
      • deploy.bicep file
      • version.json file
      • readme.md file
      • .parameters folder with at least one parameters.json file
    • ADO pipeline file under '.azuredevops\modulePipelines'
    • GitHub workflow file under '.github\workflows'

Activity

  1. added
    [prio] medium
    on Jan 27, 2022
  2. added this to the milestone on Jan 27, 2022
  3. removed this from the milestone on Mar 30, 2022
  4. AlexanderSehr commented on May 8, 2022

    @AlexanderSehr
    Contributor

    TODO:

    • Identify a module based on a folder for resourceProvider/resourceType under the arm folder (non recurse, not starting with '.*')
    • module folder contains deploy.bicep file
    • module folder contains version.json file
    • module folder contains readme.md file
    • module folder contains parameters folder with at least one parameters.json file
    • ADO pipeline file under '.azuredevops\modulePipelines'
    • GitHub workflow file under '.github\workflows'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

[prio] mediumenhancement

Type

No type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions