mirror of https://github.com/Seich/Beau.git
Schema should be validated on PR (#165)
This commit is contained in:
parent
7adba8e3dc
commit
dafd4406c1
|
|
@ -18,6 +18,10 @@ jobs:
|
|||
wget https://codeclimate.com/downloads/test-reporter/test-reporter-0.6.3-linux-amd64 -O cc-test-reporter
|
||||
chmod +x ./cc-test-reporter
|
||||
|
||||
- name: Validate Schema
|
||||
run: |
|
||||
npx ajv-cli compile -s schema.json
|
||||
npx ajv-cli validate -s schema.json -d examples/beau.yml
|
||||
- name: Run CLI Tests
|
||||
run: npm test -- ./bin
|
||||
- name: Run Lib Tests
|
||||
|
|
|
|||
|
|
@ -9,11 +9,7 @@ environment:
|
|||
GET /pokemon/$env._.pokemon: get-pokemon
|
||||
GET $get-pokemon.body.location_area_encounters: get-encounters
|
||||
|
||||
---
|
||||
host: httpbin
|
||||
endpoint: https://httpbin.org
|
||||
|
||||
POST /anything:
|
||||
POST https://httpbin.org/anything:
|
||||
- alias: post-first-area
|
||||
payload:
|
||||
area: $get-encounters.body.0.location_area.name
|
||||
|
|
|
|||
Loading…
Reference in New Issue