vmware-tanzu / homebrew-tanzu

Homebrew tap and formulas for installing the Tanzu CLI
Apache License 2.0
7 stars 9 forks source link

Automated test to check TCE Homebrew formula #20

Closed karuppiah7890 closed 2 years ago

karuppiah7890 commented 2 years ago

Feature Request

We need to automate and test TCE Homebrew installation, upgrade and uninstallation. This has to happen in the following cases

The test in main would also take care of testing if the TCE stable release installation works, because as part of TCE stable release we would update the TCE Homebrew formula, either manually or automatically (#19), and that would trigger tests in PR and after the PR merge, it would also trigger tests in main, so stable release installation would be tested

Expected changes to TCE Hombrew formula

https://github.com/vmware-tanzu/homebrew-tanzu/blob/452e0ad1f3ddebc25a4b545b5f0390339777aca6/tanzu-community-edition.rb#L55

https://github.com/vmware-tanzu/homebrew-tanzu/blob/452e0ad1f3ddebc25a4b545b5f0390339777aca6/tanzu-community-edition.rb#L131

All these would require testing the formula and an automated test just makes things easier, especially to run it in CI, to approve PRs, to run in main, to ensure that when users install TCE from Homebrew, it works

Describe alternatives you've considered

None, except for manual testing