Live data from Hacker News

Act: Run your GitHub Actions locally

github.com

21–30 of 161 posts

Re: Act: Run your GitHub Actions locally

#21
post #7

Earlier quoted context omitted.

yeah i also use other incredibly informative messages like: - oh oops - fix for real this time - will this actually work? - this probably won't fix it - a

Yeah, but with one word messages you can pass it on the command line without quotes: git commit . -m fix

TIL. Thanks!

Re: Act: Run your GitHub Actions locally

#25

Finally! I've been wanting something like this for ages- generally speaking I don't consider myself an idiot, but I'm forced to pull that into questioning every time I test and debug ci/cd actions with an endless stream of pull request modifications

It's ridiculous how we still tolerate the CI vendor lock-in.

Re: Act: Run your GitHub Actions locally

#26

Finally! I've been wanting something like this for ages- generally speaking I don't consider myself an idiot, but I'm forced to pull that into questioning every time I test and debug ci/cd actions with an endless stream of pull request modifications

Unfortunately act is only capable of running very simple workflows. I've found this action to be more useful against the endless PR stream: https://github.com/mxschmitt/action-tmate You drop it in your workflow and get an SSH shell into the worker, figure things out iteratively, then push when it's working.

Can you elaborate with some examples of workflows that it is incapable of?

So far I’ve not found any limitations or issues using Ubuntu runners on my OSX dev machine. A couple examples from my workflows: - building docker images - provisioning VMs with the Digital Ocean cli / http api - hardening VMs with ansible - creating/managing k3s clusters with k3sup - deploying apps with helm

I like your suggested approach of using tmate to access the worker mid-way through a run. This should make it faster to develop/debug the steps that make up the workflow. Though this doesn’t address the cycle time of push-to-GitHub/queue-workflow/watch-for-result.

I’m actually going to try combining the two techniques - use tmate to develop inside a local act runner.

Re: Act: Run your GitHub Actions locally

#28
post #22

I also struggle with CI vendor lock-in. Somebody wants to build a serverless- type ci system?

I've built a CI platform [1] that does support running your CI builds without the server using an offline runner. I wrote about it here before: https://blog.djinn-ci.com/showcase/2022/08/06/running-your-c...

[1] - https://about.djinn-ci.com/

Re: Act: Run your GitHub Actions locally

#30

I’ve used this a bunch; I actually don’t know how else you’d write and test a GitHub action. Do people just push them and hope they work and push more commits with “fix” as the message until it works?

We use a repo fork for CI workflow experiments. Once it's tested, we push the workflow changes to the main repo.
Post reply on HN