I am new to github actions and I’ve been investigating whether or not it’s possible to move my Azure pipelines over to github. I confess, though, I’m stuck on some fairly basic tasks.
How do I go about testing and debugging the creation of the workflow file itself? Are there some best practices that would help me out?
Here’s a scenario to illustrate my problem:
I have an action that should build and test my dotnet code on each PR to my master or devel branch. It should also do this when a push is made to the devel and master branches. And if the run is for the master and devel branch, then I want it to create build artifacts.
So, I created a workflow that I think should do everything I want. I saved it to a new branch and created a PR. However, that PR does not trigger a workflow run. AND even if it did, it would not run the steps to create the artifacts since it’s only a PR and not a merge.
I usually have a few syntax mistakes and various fixes that have to be addressed when creating a pipeline, so I doubt I have the action perfect the first time around, but how do I easily test this? I’ve been reading documentation, but haven’t seen anything that addresses this issue.
Any advice from anyone would be welcome?