RFC: Include CLI packaging information within the connector metadata #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Use Node.js | ||
uses: actions/setup-node@v4 | ||
working-directory: connector-metadata-types | ||
Check failure on line 19 in .github/workflows/validate-connector-metadata-schema.yml GitHub Actions / Validate Connector Metadata JSON SchemaInvalid workflow file
|
||
with: | ||
node-version: '18' | ||
- name: Debug file existence | ||
working-directory: connector-metadata-types | ||
run: | | ||
pwd | ||
ls -la | ||
cat package-lock.json | head -n 5 | ||
- name: Install dependencies | ||
working-directory: connector-metadata-types | ||
run: npm ci | ||
- name: Generate and compare schema | ||
run: | | ||
npm run generate-schema | ||
if ! git diff --quiet connector-metadata-types/schema.json; then | ||
echo "Error: Generated schema does not match the existing schema." | ||
git diff connector-metadata-types/schema.json | ||
exit 1 | ||
fi |