refactor: rename icon field to logo and require URL-only values
#272
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: Validate PR | |
| on: | |
| pull_request: | |
| paths: | |
| - "servers/**" | |
| jobs: | |
| validate: | |
| name: Validate Server Definitions | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Get changed files | |
| id: changed | |
| uses: tj-actions/changed-files@v44 | |
| with: | |
| files: "servers/*.json" | |
| - name: Validate changed server files | |
| run: | | |
| if [ -n "${{ steps.changed.outputs.all_changed_files }}" ]; then | |
| npm run validate -- ${{ steps.changed.outputs.all_changed_files }} | |
| else | |
| echo "No changed server files detected, running full validation as fallback" | |
| npm run validate:all | |
| fi | |
| - name: Check for conflicts | |
| run: npm run check-conflicts |