flarum / issue-archive

0 stars 0 forks source link

flarum-cli audit infra #27

Open askvortsov1 opened 2 years ago

askvortsov1 commented 2 years ago

Feature Request

There is a LOT of repo infra / config that can easily get out of date:

Because of Flarum's many-extension architecture, there are also a LOT of repos to keep track of / keep up to date. This is tedious and not scalable.

I believe we should use flarum-cli as the single source of truth for all this repo infrastructure. We can store the "proper" config via the boilerplate extension, and the infra commands that automatically update parts of extension skeletons. Then, a flarum audit infra command can be used to check whether any infra is out of date / not in compliance with our opinionated specs.

Furthermore, we can add a GItHub action to every Flarum repo that runs flarum-cli infra audit to see whether anything is out of date. This will make it really easy to keep Flarum repo infra up to date.

tankerkiller125 commented 2 years ago

The other option would be to make all of the GitHub actions infrastructure Github Action packages, (I think you can do that) thus updating one package updates everything across our entire organization, similar to the way that our JS build action works.

askvortsov1 commented 2 years ago

The other option would be to make all of the GitHub actions infrastructure Github Action packages, (I think you can do that) thus updating one package updates everything across our entire organization, similar to the way that our JS build action works.

We'd still need to bump versions across all repos, plus that doesn't help with typescript config, testing, etc.

tankerkiller125 commented 2 years ago

Fair enough