muselab-d2x/d2x

Feature Test is attempting to delete the wrong scratch org

Closed this issue · 2 comments

I'm testing my project locally with VSC (I'm not using GH Codespaces).

I push a change to my feature branch and the Feature Test runs in GH as expected.

In the Feature Test Action the step 'Set feature org as default' runs cci org default feature.
'Run Feature Test' step fails because of a failure in the deploy task.
'Delete Scratch Org' step tries to run cci org scratch_delete dev.

Expected Result: The delete scratch org step deletes 'feature' org.
Actual Result: The delete scratch org step deletes 'dev' org.

You can see the log files here:
https://github.com/beAGoodQE/rugbyDay/actions/runs/6672781569/job/18137321509

I believe this is the offending code:
https://github.com/muselab-d2x/d2x/blob/b5bee23c99de2b020b7c6a6539fc2fd613625c7e/.github/workflows/feature-test.yml#L48C40-L48C43

Verified this is fixed, closing issue.