Skip to content

Dynamically generate matrix entry in GH Actions workflow #192

@jsf9k

Description

@jsf9k

💡 Summary

It should be possible to dynamically generate the matrix entry in the test portion of the build workflow.

Motivation and context

This would reduce the burden on the repo maintainer.

Implementation notes

  • Here is an example of a workflow that dynamically generates the matrix entry. This idea is briefly discussed here.
  • We can parse the list of scenarios by listing the directories under molecule.
  • We can parse the platforms and architectures for each scenario by parsing its molecule.yml file.
  • In most cases the platforms and architectures will the same for each scenario, but differences can be handled by taking the superset and adding additional exclude configurations to the matrix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementThis issue or pull request will add or improve functionality, maintainability, or ease of use

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions