We need to automate and test TCE Homebrew installation, upgrade and uninstallation. This has to happen in the following cases
Whenever there's a PR to change the TCE Homebrew formula, it should run tests to check if the PR changes work before the PR can be merged
Whenever there's a PR merge to main / direct push to main, it should run tests to check if the changes in the commits to main work
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
Changes in version and SHA sums during releases, as explained in #19
Or any other small changes in the Homebrew formula
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
Feature Request
We need to automate and test TCE Homebrew installation, upgrade and uninstallation. This has to happen in the following cases
main
/ direct push tomain
, it should run tests to check if the changes in the commits tomain
workThe 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 inmain
, so stable release installation would be testedExpected 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 worksDescribe alternatives you've considered
None, except for manual testing