News for hackers. Stuff that matters.
Re:GitHub Actions Pitfalls by sandreas on Monday September 26, 2022 @07:21AM (#32981690)
If you want to run github actions locally before any pitfalls, you can try out

https://github.com/nektos/act

Re:GitHub Actions Pitfalls by kilroy123 on Monday September 26, 2022 @11:00AM (#32984003)
Have 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.
Re:GitHub Actions Pitfalls by mkj on Monday September 26, 2022 @11:06AM (#32984083)
For 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...)

Re:GitHub Actions Pitfalls by badloginagain on Monday September 26, 2022 @01:41PM (#32985953)
Like 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.

Re:GitHub Actions Pitfalls by philshem on Monday September 26, 2022 @08:31AM (#32982274)
And for gitlab pipelines:

https://stackoverflow.com/q/32933174

Re:GitHub Actions Pitfalls by anakaiti on Monday September 26, 2022 @10:42AM (#32983764)
Unfortunately, it only supports running single jobs. More complex tasks that requires dependencies, variables, job creation context (MR, Trigger, Web, etc.) can't be tested.
Re:GitHub Actions Pitfalls by hobo_mark on Monday September 26, 2022 @05:14PM (#32988524)
Then maybe this?

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)

Re:GitHub Actions Pitfalls by bastardoperator on Monday September 26, 2022 @12:55PM (#32985431)
GitHub also has a tool that will covert Jenkins pipelines (and other tooling) to Actions called Valet.

https://github.com/github/gh-valet

Re:GitHub Actions Pitfalls by 1980phipsi on Monday September 26, 2022 @08:59AM (#32982553)
That's pretty cool. I could have used something like that for Microsoft's CI.
Re:GitHub Actions Pitfalls by vinceguidry on Monday September 26, 2022 @03:31PM (#32987231)
It should very much concern you that this is a third-party tool with zero support from GitHub. There is no first-party solution.
Re:GitHub Actions Pitfalls by pdimitar on Monday September 26, 2022 @07:52AM (#32981934)
Ha, that's great, I am definitely trying it. Thank you.
Re:GitHub Actions Pitfalls by More-nitors on Monday September 26, 2022 @01:35PM (#32985886)
hm you can just run self-hosted github action runners for free...