I am just experimenting with GitHub action and I have the following workflow.
- when a developer finishes a feature and creates a PR on (branch name can be in the format of
feature/ticketno), I would like to run some tests against the newly created PR branch.
one solution I found is to add an if condition in the action steps to avoid running tests against the desired branches on the PR up(ie master, staging).
But not sure this is the right approach I looking for a proper solution