flaviostutz / monolint

Linter for monorepos. Checks folder structure, module contents, file contents and naming conventions
MIT License
7 stars 4 forks source link

Create rule "gh-workflow-module-prefix" #6

Closed flaviostutz closed 1 year ago

flaviostutz commented 1 year ago

Verifies if all github actions (files inside .github/workflows) filenames starts with the name of an existing module. If "required" all modules have to have at least one workflow configured for each "sufix". If not, then only workflows with one of the suffixes in their names are accepted. If no suffix is defined, only prefix is validated.

{
  "rules": {
    "gh-workflow-module-prefix": true
  }
}
{
  "rules": {
    "gh-workflow-module-prefix": {
      "suffix": [ "-dev", "-prd" ],
      "required": true
    }
  }
}
flaviostutz commented 1 year ago

closed by #34