I have some workflows:
pre-buildfor ssh, git clone, cache:pull, yarn install
testsfor typescript check, jest tests and sonarqube scanner
iosfor native build with fastlane
ios-devices-testto send to AWS DeviceFarm
Start this year, we migrate to a team account with parallel build. Before this, we run one workflow after another and inside the
ios workflows (including devices-test) I add a version bump step with fastlane and push to repo.
When I push some code, both workflows are triggered and the last one aways fails because the first one do a version bump and push these changes. So the last one fails because needs a pull before.
My question, I can do a pull before a push, but is there another way to maintain parallel build and one doesn’t affect other?
I try to run one and call other after finish but this give 82min builds. It’s so long.
What is the better way to do this? Pull code before do the version bump?