mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #173] Services not working #117
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#117
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fgimenez on GitHub (Mar 28, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/173
Originally assigned to: @catthehacker on GitHub.
Hello! I have this workflow:
The
yarn testcommand expects to find a mongodb service listening on 27017, but running act the command fails withMongooseServerSelectionError: getaddrinfo ENOTFOUND mongodb. The same workflow succeeds on GitHub.I've also tried
-P ubuntu-latest=nektos/act-environments-ubuntu:18.04, any help is very appreciated :)@thatdoogieguy commented on GitHub (May 1, 2020):
I was having a similar problem, especially when i was trying to combine rails caching with postgresql and redis. In the end i created a seperate workflow file called ci-local.yml based off of the production Github Actions file i had created and manually defined the services by calling apt-get then service %service_name% start.
Massive PITA but for localised testing this was the only way i could thoroughly test the functional parts of GitHub Actions where multiple parts are as yet unsupported.
Not a fix, just a hacky workaround to get myself out of trouble!
@github-actions[bot] commented on GitHub (Jul 1, 2020):
Issue is stale and will be closed in 7 days unless there is new activity
@mossad-zika commented on GitHub (Aug 31, 2020):
shiiiiiiiiiiiiit
@jadhavmanoj commented on GitHub (Oct 15, 2020):
Same here. Services not working. Any workaround for the same?
@mossad-zika commented on GitHub (Oct 15, 2020):
@jadhavmanoj workaround is to use docker-compose
@chenxilinsidney commented on GitHub (Nov 21, 2020):
I have the same problem while using services of mysql and redis in action
@theoparis commented on GitHub (Dec 28, 2020):
Any updates? It's been another month
@Lzok commented on GitHub (Jan 25, 2021):
Hello, any update on this?
My code:
In the env section of my job I have:
MONGO_URI_TESTS: localhost:${{ job.services.mongodb.ports[27017] }}/dbtestThe error:
ERRO[0082] Unable to interpolate string 'localhost:${{ job.services.mongodb.ports[27017] }}/dbtest' - [TypeError: Cannot access member 'ports' of undefined]Thank you!
@Systho commented on GitHub (Feb 4, 2021):
@thatdoogieguy Could you provide a snippet of the step you wrote tha install & start postgresql ?
I have a feeling that is a simple one but since you have experience about it let's ensure there is no nasty corner case :)
@loklaan commented on GitHub (Feb 17, 2021):
Edit: I thought this was a bug, but in fact support for
servicesaren't implemented yet in act, so for those shouting BUMP please consider contributing instead if you can! 🙌@Systho A small reproduction is:
.github/workflows/repro.ymlact "push" --job "repro"@amacgregorhumi commented on GitHub (Feb 24, 2021):
BUMP
@moki9 commented on GitHub (Mar 1, 2021):
BUMP
@github-actions[bot] commented on GitHub (Apr 1, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@elitan commented on GitHub (Jul 14, 2021):
The bot closing issues after 14 days is pretty aggressive. :/
(I too have this issue locally. Works on GitHub)
@catthehacker commented on GitHub (Jul 14, 2021):
Services were drafted in https://github.com/nektos/act/pull/638 but author stopped responding, it works but it also breaks easily thus it wasn't merged
@catthehacker commented on GitHub (Aug 11, 2021):
Notification for people subscribed to this thread, please see latest PR mentioned.
artefacts: https://github.com/nektos/act/actions/runs/1118549374
@techpeace commented on GitHub (Aug 24, 2021):
I added the following steps to my workflow in order to get the actions for my Rails app running locally:
@neongreen commented on GitHub (Mar 15, 2022):
It would be great if the readme mentioned that
servicesisn't supported.@kent-avl commented on GitHub (Nov 8, 2022):
thanks for providing this workaround. but installing everything every time is quite annoying, is any way to make act connect host service? e.g make act connect PostgreSQL that runs in the host.
@till commented on GitHub (Nov 8, 2022):
You can probably use
host.docker.internalon osx.@edmundsj commented on GitHub (Jan 15, 2023):
Getting this working would be AMAZING - our company heavily uses GitHub actions and act (mostly for debugging - makes it a breeze), but getting services running locally would dramatically cut our build times (as they could be done locally) and make debugging complex actions possible.
@bilogic commented on GitHub (Mar 31, 2023):
Yea it is annoying, but connecting to host will likely restrict you to only 1 runner. Probably makes more sense to have database as part of the image, but I'm still researching how that can be done, i.e. where are they pulling
unbuntu-latestfrom@tarikhagustia commented on GitHub (Apr 17, 2023):
+1
@GuessWhoSamFoo commented on GitHub (Jul 10, 2023):
@catthehacker Are you aware of any active development efforts? Last I've seen is #775 and would love to help get it over the finish line
@ChristopherHX commented on GitHub (Jul 10, 2023):
This is finished in a fork https://gitea.com/gitea/act.
Maybe this can be backported by someone.
There aren't any active development efforts for this in nektos/act.