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
|
wget https://codeclimate.com/downloads/test-reporter/test-reporter-0.6.3-linux-amd64 -O cc-test-reporter
|
||||||
chmod +x ./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
|
- name: Run CLI Tests
|
||||||
run: npm test -- ./bin
|
run: npm test -- ./bin
|
||||||
- name: Run Lib Tests
|
- name: Run Lib Tests
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,7 @@ environment:
|
||||||
GET /pokemon/$env._.pokemon: get-pokemon
|
GET /pokemon/$env._.pokemon: get-pokemon
|
||||||
GET $get-pokemon.body.location_area_encounters: get-encounters
|
GET $get-pokemon.body.location_area_encounters: get-encounters
|
||||||
|
|
||||||
---
|
POST https://httpbin.org/anything:
|
||||||
host: httpbin
|
|
||||||
endpoint: https://httpbin.org
|
|
||||||
|
|
||||||
POST /anything:
|
|
||||||
- alias: post-first-area
|
- alias: post-first-area
|
||||||
payload:
|
payload:
|
||||||
area: $get-encounters.body.0.location_area.name
|
area: $get-encounters.body.0.location_area.name
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue