Skip to content

RFC: Include CLI packaging information within the connector metadata #7

RFC: Include CLI packaging information within the connector metadata

RFC: Include CLI packaging information within the connector metadata #7

name: Validate Connector Metadata JSON Schema
on:
push:
branches: [ main ]
pull_request:
branches: [ main, kc-cli-plugin-packaging-v1 ]
jobs:
validate-schema:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Change to the connector directory
run: cd connector-metadata-types
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Debug file existence
run: |
pwd
ls -la
cat package-lock.json | head -n 5
- name: Install dependencies
run: npm ci
- name: Generate and compare schema
run: |
npm run generate-schema
if ! git diff --quiet schema.json; then
echo "Error: Generated schema does not match the existing schema."
git diff schema.json
exit 1
fi