Schema should be validated on PR (#165)

This commit is contained in:
David Díaz 2020-11-21 22:57:44 -06:00 committed by GitHub
parent 7adba8e3dc
commit dafd4406c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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