Upon each commit to a branch that's not the default branch, test the code and place a check, which should give feedback to contributors and prevent code with bugs from getting into the releases on the default branch.
This should be done using GitHub Actions workflows.