Skip to content

Concept Shippable Response Plans #6

Concept Shippable Response Plans

Concept Shippable Response Plans #6

name: Validate Response Templates
on:
pull_request:
types: [opened, reopened, synchronize]
paths:
- 'response_templates/**'
- '.github/workflows/validate-response-templates.yml'
push:
branches:
- develop
paths:
- 'response_templates/**'
- '.github/workflows/validate-response-templates.yml'
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Check out the repository code
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
architecture: 'x64'
- name: Install dependencies
run: |
pip install pyyaml jsonschema
- name: Generate merged response templates
run: |
python .github/workflows/response_templates/template_script.py -d ./response_templates -o ./response_templates/merged_response_templates -m
- name: Validate response templates
run: |
python .github/workflows/response_templates/validate_response_templates.py -s .github/workflows/response_templates/mcopenapi_public.yaml -d response_templates -m response_templates/merged_response_templates/manifest.json --merged-dir response_templates/merged_response_templates