Closed devlead closed 4 years ago
They pass because you don't run them from a clean state, previous task installed cake so it works.
If you only have one cake task it'll fail because no cake previously installed.
Before above change, uninstall code only executed with in an if block that already checked that cake was installed.
Example execution: https://github.com/devlead/cake/commit/ba16d5ae915d7373302b81726348516d985eeded/checks?check_suite_id=313750612#step:3:8
Original commit rebased away but same as below but with version specified https://github.com/cake-build/cake/blob/7494c7e64e4a00e58acceef4e02d6e4e3efc9695/.github/workflows/build.yml#L20
@devlead Gotcha! Thank you for reporting this. 👍 I'll take care of it and make a new release.
https://github.com/ecampidoglio/cake-action/commit/cbd362d47a8ef17fbc4a3af64d1e7330842b09cf#diff-6a7166c4d6d46136f0efc2a724763a85R37
Before it checked if cake was installed and then checked if version was specified and uninstalled.