akhettar / readiness-check

Github Action to run docker compose and prove for the health of the service wanting to run integration test against

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Endpoint Readiness Check Action

Github Action to run docker compose if required and check the readiness of an endpoint of the service that one wants to run integration test against.

Usage

This is a very simple action which performs readniness check of an endpoint of a sevice that one wishes to run integration test against. The configuratino parameters for this action are explained below:

  • readiness-endpoint: Is the url that we want to check for the health status of the service.
  • timeout: Is the timeout in seconds of how long to wait for the readiness endpoint to become reacheable. It is optinal if not provided it will default to 40 seconds.
  - name: Check the readiness of the endpoint
    uses: akhettar/readiness-check@master
    with:
      readiness-endpoint: 'http://localhost:8080/v1' 
      timeout: '2' 

About

Github Action to run docker compose and prove for the health of the service wanting to run integration test against

License:MIT License


Languages

Language:Go 92.2%Language:Dockerfile 6.5%Language:Shell 1.3%