testing reusable workflows locally - replace remote repo with local path? #1924
Replies: 2 comments 6 replies
-
|
No such feature exists in act, no doubt this is useful. I have already implemented this in my actions/runner fork, but act may gain it later |
Beta Was this translation helpful? Give feedback.
-
|
@mverkerk-godaddy could you please explain why
is expected? The error messages from act show that it should support remote reusable workflows, and all related issues/pr(s) have been merged. At the time of writing (Act v0.2.79) I still get similar errors and thus enable to test workflows locally. Even though all pr(s) related to running remote reusable workflows have been merged, none actually document how to actually use these "new features", and neither does the documentation or sample. Has anyone found a way to be able to trigger a workflow locally that uses a remote reusable workflow? If so please let me know. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All - I'm having an issue while testing reusable workflows locally. Here's an example:
When I run this job, act will clone
https://github.com/org/repoto local cache and throw an error:Error: stat /home/me/.cache/act/org-repo@main/.github/workflows/reusable.yml: no such file or directoryThis is the expected behavior but instead if this, I want act to use the local version of the file because that is what I am testing or, in this case, the file has not been released yet ...
Of course, I could change to
./.github/workflows/reusable.ymlwhile testing but that can easily lead to mistakes (i.e. forgot to change back the path) or I may have many of these and would have to change all the paths back & forthWould be great if there was a parameter like
--remote-repo <org>/<repo>which act would interpret as./Is there a way to do this already?
Beta Was this translation helpful? Give feedback.
All reactions