The github action should also validate the schema since it's not

deployed automatically to the website and we don't want to break that.
This commit is contained in:
David Diaz 2020-11-21 22:47:31 -06:00
parent 849b823311
commit 46578c1dc5
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