Skip to content

Small GitHub action for endpoint check

License

Notifications You must be signed in to change notification settings

10ourto/glowing-spoon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Endpoint check action

This action send GET request to chosen endpoint and compare result with expected filed. Parsing only JSON file with jq command.

Inputs

hostname

Required Hostname to check. Without schema. Default "my-json-server.typicode.com".

path

Required Path of endpoint. Started with /. Default "/typicode/demo/db".

filter

Required Filter for jq command. Original syntax. Default ".profile.name".

expected

Required Expected value from request. Default "typicode".

unsecure

Not Required If true action will skip certification validation. Default false.

Outputs

result

The result of command.

Example usage

- name: Check my-json-server
  uses: 3sky/[email protected]
  with:
    hostname: 'my-json-server.typicode.com'
    path: '/typicode/demo/db'
    filter: '.profile.name'
    expected: 'typicode'

About

Small GitHub action for endpoint check

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 59.4%
  • Dockerfile 40.6%