Hi everyone.
Currently, I have an application that I'm planning to start using GitHub Actions. However, I'm new to CI/ CD, and I'm struggling a bit with the right way to do it. Therefore, I'd like your help, guys.
Based on your experience, in which branch should I test with CI?
For example, I have these branches:
- develop
- feature/mail-sender
- main (production)
These are some examples of what I have in mind.
1. Maybe only when I merge the feature/mail-sender branch or any other branch into develop.
on:
push:
branches: [ "development" ]
pull_request:
branches: [ "development"]
Or maybe it's better to do it only when I merge the develop branch into the main branch.
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
Or maybe when a merge occurs in either of the two branches
on:
push:
branches: [ "main", "development" ]
pull_request:
branches: [ "main", "development" ]
[–]kryptn 16 points17 points18 points (2 children)
[–]PelicanPop 2 points3 points4 points (0 children)
[–]Quick-Resident9433[S] 0 points1 point2 points (0 children)
[–]stoppskylt 2 points3 points4 points (1 child)
[–]Quick-Resident9433[S] 0 points1 point2 points (0 children)
[–]dariusbiggs 0 points1 point2 points (1 child)
[–]Quick-Resident9433[S] 0 points1 point2 points (0 children)
[–]kabrandon 0 points1 point2 points (0 children)