Related to my last question. Does anyone know how ...
# community-support
c
Related to my last question. Does anyone know how to run github actions locally with the setup-gradle action? I've been looking at using nektos/act which seems popular as a local github action runner, but it doesn't support setup-gradle v4 or v5 (it does seem to work fine with v3 tho). Just wanna see if theres something the gradle community uses already
ooh looks like @Pavlo Shevchenko has a integration with act, but it's archived. any chance you can give an explanation as to why its archived or what to use instead?
e
FWIW I've never gotten one to work well, so I usually make a new branch and add a
Copy code
on:
  workflow_dispatch:
trigger so I can run it as needed. It almost never goes well if I'm doing anything more than basic, but it eventually gets the job done.
c
darn. def sucks that we cant repro easily. moving down to v3 seems to work with nektos act at least for easy things. for now i also just created a GHA sandbox repo in my private github where i can try some techniques for work projects. we'll see what happens. glad im not missing something obvious tho
p
has a integration with act, but it's archived. any chance you can give an explanation as to why its archived or what to use instead
I initially built a Gradle plugin with the idea to make it possible to validate GH actions locally by running a Gradle build before merging. But then I realized that a more handy
act
integration would target developers of new actions when they need to implement e2e tests. That's why I archived the plugin in favor of this testing library. Regardless, none of those would help with whatever issues pop up when running the
setup-gradle
action with
act
. From my experience,
act
may sometimes need additional configuration to execute certain actions (e.g., cache server). Sorry I have not seen your message earlier as I have just come back from a longer break. If you still have the error messages, I could take a look.
c
I think I just put a pause on nektos for now, but I'm sure I'll try again in the future. Hope you enjoyed your break. cheers