Skip to content

Clovis-team/wait_for_response

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wait For Response docker action

This action makes a HEAD requests to a given URL until the required response code is retrieved or the timeout is met. Initially created to allow test containers to startup before executing tests against them.

Inputs

url

The URL to poll. Default "http://localhost/"

responseCode

Response code to wait for. Default "200"

timeout

Timeout before giving up in milliseconds. Default "30000"

interval

Interval between polling in ms. Default "200" default: 200

Example usage

uses: cygnetdigital/[email protected]
with:
  url: 'http://localhost:8081/'
  responseCode: '200,500'
  timeout: 2000
  interval: 500

About

Github action to wait for a response

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 58.8%
  • Dockerfile 34.6%
  • Shell 6.6%