Skip to content

Using Github Action without Docker #33

Answered by felixfontein
rndmh3ro asked this question in Q&A
Discussion options

You must be logged in to vote

Right now this action only allows running tests with docker (and this is definitely the cause for your problem).

What you could try:

  1. Use pre-test-cmd to create a tests/integration/integration_config.yml file which contains the IP of the main container (or even directly the service container), so that the service can be reached as <ip_from_that_file>:80.
  2. Adjust your tests to use the variable supplied by tests/integration/integration_config.yml to talk to the service.

If you add a default tests/integration/integration_config.yml file in your repo that sets the IP to 127.0.0.1 your tests should just continue working for folks who run them locally.

EDIT: The action was updated to tell ansib…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@webknjaz
Comment options

@webknjaz
Comment options

@rndmh3ro
Comment options

@webknjaz
Comment options

@webknjaz
Comment options

Answer selected by webknjaz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants