7 ms·
If you want to run github actions locally before any pitfalls, you can try out https://github.com/nektos/act https://github.com/nektos/act
by sandreas 4y ago
If you want to run github actions locally before any pitfalls, you can try out
https://github.com/nektos/act https://github.com/nektos/act
- pdimitar 4y agoHa, that's great, I am definitely trying it. Thank you.
- philshem 4y agoAnd for gitlab pipelines: https://stackoverflow.com/q/32933174 https://stackoverflow.com/q/32933174
- anakaiti 4y agoUnfortunately, it only supports running single jobs. More complex tasks that requires dependencies, variables, job creation context (MR, Trigger, Web, etc.) can't be tested.
- hobo_mark 4y agoThen maybe this? https://github.com/firecow/gitlab-ci-local https://github.com/firecow/gitlab-ci-local (I only tried it shortly many months ago before running into some issues, it probably works better now)
- 1980phipsi 4y agoThat's pretty cool. I could have used something like that for Microsoft's CI.
- deleted 4y ago[deleted]
- kilroy123 4y agoHave folks had good success with using this? For me it was extremely slow and it was far faster to just push a branch to github and test.
- mkj 4y agoFor me act works fairly well, though it isn't exactly the same as Github. Matrix builds didn't work properly (just noticed it has been fixed now), and the base images aren't quite the same. Github should send a bunch of money to the act developer - I know I wouldn't have used Github actions at all without act existing, I'm sure other people must be in the same situation. (Though I'm not paying Github either, so perhaps I'm not a target customer...)
- badloginagain 4y agoLike many things, the more complex the workflow the more useful it becomes running it locally. I've found it especially useful for fixing complex workflows or working with custom actions. It's not strictly needed, but it does speed up your workflow once you figure out the kinks.
- deleted 4y ago[deleted]
- bastardoperator 4y agoGitHub also has a tool that will covert Jenkins pipelines (and other tooling) to Actions called Valet. https://github.com/github/gh-valet https://github.com/github/gh-valet
- More-nitors 4y agohm you can just run self-hosted github action runners for free...
- vinceguidry 4y agoIt should very much concern you that this is a third-party tool with zero support from GitHub. There is no first-party solution.