[CEM Template Loader] v9.2.0 #165
This file contains hidden or 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: Plugin Validator | |
| on: [pull_request] | |
| jobs: | |
| verify-json-validation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Validate JSON | |
| uses: docker://orrosenblatt/validate-json-action:latest | |
| env: | |
| INPUT_SCHEMA: ./schema.json | |
| INPUT_JSONS: ./plugins.json | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - name: Checkout the code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Ensures we have the full history for diff | |
| - name: Validate | |
| run: | | |
| npm ci | |
| git fetch origin ${{ github.base_ref }} | |
| CHANGED_FILES=$(git diff --name-only origin/${{ github.base_ref }}...HEAD) | |
| CHANGED_FILES="$CHANGED_FILES" npm run validate |