I’m trying to configure CI on my Node.js app but the “normal use case” doesn’t fit my model.
Normal use case:
- You do a PR.
- PR is approved and merge is done.
- If tests pass, a build is made.
The thing is that in my case a merge is a build, that is because my production server is always doing a pull of the last changes and Node.js code doesn’t compile.
My possible solutions:
- If tests fails, do a reverse of the merge.
- Run tests on PR and approve the merge if tests pass (is this possible?).
What do you think? Any other ideas?