This is very similar to Run another workflow after a workflow succeeds?
What I want is to run cypress or selenium tests after deploy is done.
It needs to happen after deploy to be running on new code but it can’t happen right after deploy because there is a period in which CDNs are still having old version.
I’d like to have it in separate job/workflow because “deployment” workflow is successful when code is deployed. If I’d do it as last job in “deployment” workflow, workflow would be marked as successful couple of minutes after deploy which could introduce confusion (ie. workflow still in progress but new code already deployed).
I found such solution How to trigger a workflow via CircleCI API (v2) – CircleCI Support Center which probably could work. Is it the best option or there is any simpler solution to this problem?