I have a question about GitHub Actions - Cypress testing mentality. We have 2 different environments for development; let's call them firstEnv and secondEnv.
Developers are pushing their codes on firstEnv. Once in a week we are having releases from firstEnv to secondEnv; so automation tests are different from each other; since there are differences among them.
I'm holding automation code for secondEnv in "main" branch and for firstEnv, another branch called "develop-branch". When release happens I'm merging develop-branch to main branch; because two environments become same and can be tested by main.
So here is the question I want to test each environment by its own branch periodically (e.g. firstEnv with "develop-branch" | secondEnv with "main" at 2 am). Should I prepare two different yaml files for different environments? If so, in which branch I should hold these files?
I tried to add two yaml files for main branch like firstEnv.yaml and main.yaml; however they both used the code in main branch.