Live data from Hacker News

Act: Run your GitHub Actions locally

github.com

1–10 of 161 posts

Re: Act: Run your GitHub Actions locally

#3
post #2

This is pretty cool but I have never managed to make it work with our AWS ECR repos. There are probably some permissions that I am missing but not very clear in the documentation how to do that.

Same. I've only got it to work with the most basic of actions. Anything that requires Docker didn't work for me the last time I tried it!

There's a way to download a much larger "base image" which in theory would make it work, but if I remember rightly it was something like 60gb of containers which I was never patient enough to download. It was always quicker to just push up to github and iterate that way unfortunately.

Re: Act: Run your GitHub Actions locally

#4
post #3
post #2

This is pretty cool but I have never managed to make it work with our AWS ECR repos. There are probably some permissions that I am missing but not very clear in the documentation how to do that.

Same. I've only got it to work with the most basic of actions. Anything that requires Docker didn't work for me the last time I tried it! There's a way to download a much larger "base image" which in theory would make it work, but if I remember rightly it was something like 60gb of containers which I was never patient enough to download. It was always quicker to just push up to github and iterate that way unfortunate…

[dead]

Re: Act: Run your GitHub Actions locally

#5
The lack of a frictionless way to run github actions locally has always seemed a big issue to me.

So in many cases, I use a makefile with one of the github actions to run a makefile. It has worked okay in the few cases I've tried it.

Re: Act: Run your GitHub Actions locally

#7

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?

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

Re: Act: Run your GitHub Actions locally

#8
post #5

The lack of a frictionless way to run github actions locally has always seemed a big issue to me. So in many cases, I use a makefile with one of the github actions to run a makefile. It has worked okay in the few cases I've tried it.

The downside to this approach is that you have to wait longer for things to pass compared to certain actions.

For example, linting can be run in seconds with an action. If you instead clone and install dependencies before linting, you’re waiting much longer to realize you have more whitespace than you should have

Re: Act: Run your GitHub Actions locally

#9

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?

You've described my workflow perfectly. Edit: Downvoters, please help me.
Post reply on HN