Skip to content

3sky/glowing-spoon

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 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'