Github has recently added action button for CI test.
But, I do not want to push a code without passing CI locally.
How can I test my ccpp.yml
code locally?
Github has recently added action button for CI test.
But, I do not want to push a code without passing CI locally.
How can I test my ccpp.yml
code locally?
GitHub Actions currently doesn't support running the YAML file locally. Its twin sibling Azure Pipelines doesn't either. I've asked the team behind the runner many times for this feature, but the consistent answer is that it would only work for single stage, single agent jobs anyway and would therefore never really work satisfactory to anyone. On top of that there is no way for the agent to guarantee that your local system has the same dependencies installed and in the same way, nor does it have access to the secret store.
Because of these reasons, if you want simple CI, use the special Actions, if you want advanced CI that also runs certain stages locally, make sure you don't depend on specific actions, instead: put everything in (Power)Shell and run those from your actions. That way they're also easy to run locally.