Live data from Hacker News

Act: Run your GitHub Actions locally

github.com

131–140 of 161 posts

Re: Act: Run your GitHub Actions locally

#131

I found Dagger[1] and Earthly[2] which supposedly would solve the issue of debugging the CI locally. I haven't got time to try them out yet though. [1]: https://dagger.io/ [2]: https://earthly.dev/

+1 for Earthly. It isn't perfect, but it does a very good job at making CI and development 1:1

Re: Act: Run your GitHub Actions locally

#132
post #101

This piece of software would have to handle all the intricacies of the GitHub actions but also be updated to the latest changes... We are moving back to a makefile based approach that is called by the GitHub workflows. We can handle different levels of parallelism: the make kind or the indexed by worker number when running in actions. That way we can test things locally, we can still have 32 workers on GitHub to run…

i do the same, but with Task

Re: Act: Run your GitHub Actions locally

#133
It’d be great if act could build its container images locally instead of downloading them through a rate-limited pipe from docker hub. The full size image (~14gb) takes the better part of a day to download; I’ve never been able to wait it out on my work laptop.

Re: Act: Run your GitHub Actions locally

#134
post #133

It’d be great if act could build its container images locally instead of downloading them through a rate-limited pipe from docker hub. The full size image (~14gb) takes the better part of a day to download; I’ve never been able to wait it out on my work laptop.

If your Internet is so bad, this might not help you, but it's possible to build them locally: https://github.com/nektos/act-environments#building-images

Re: Act: Run your GitHub Actions locally

#135

just because no-one mentioned it. With Gitlab CI you can run pipeline locally if you install gitlab-runner. Sadly, you can run only one job at a time, not the whole pipeline

https://news.ycombinator.com/item?id=33754907 mentioned it, and I addressed that "run pipeline locally" claim, which has 100% not been my experience

Now, the asterisk to that claim is that I have had good success running gitlab locally, with local runners, such that I can do whatever crazy thing I want to the CI variables, to the repo, to the branches, and can run the runners in "debug" mode (although usually not necessary since I can "docker exec" into them) but the idea that I can just tell my colleagues to "brew install gitlab-runner && gitlab-runner exec some-job" is for sure false

Re: Act: Run your GitHub Actions locally

#136
post #133

It’d be great if act could build its container images locally instead of downloading them through a rate-limited pipe from docker hub. The full size image (~14gb) takes the better part of a day to download; I’ve never been able to wait it out on my work laptop.

If your Internet is so bad, this might not help you, but it's possible to build them locally: https://github.com/nektos/act-environments#building-images

I have a gigabit connection, docker hub just won’t give me the bits fast enough :( thanks for the link!

Re: Act: Run your GitHub Actions locally

#137

Earlier quoted context omitted.

It was indeed very unexpected. The first time you would try out a cli tool you’d expect just calling its name to return help info and maybe an error.

/sbin/reboot would surprise you. Use --help for help info.

Or `man`

Re: Act: Run your GitHub Actions locally

#138
post #101

This piece of software would have to handle all the intricacies of the GitHub actions but also be updated to the latest changes... We are moving back to a makefile based approach that is called by the GitHub workflows. We can handle different levels of parallelism: the make kind or the indexed by worker number when running in actions. That way we can test things locally, we can still have 32 workers on GitHub to run…

Is this public?

https://batect.dev/ this is like Act but agnostic and public
Post reply on HN