Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,34 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' }}

cli-schema:
name: Check CLI schema is up to date
permissions:
contents: read
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max-old-space-size=6144
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 22.x
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Regenerate CLI schema
run: npm run build:schema
- name: Check for uncommitted changes
run: |
if ! git diff --exit-code docs/cli/schema.json; then
echo ""
echo "docs/cli/schema.json is out of date. Run 'npm run build:schema' and commit the result."
exit 1
fi

ci:
name: CI Result
if: always()
Expand All @@ -134,6 +162,7 @@ jobs:
- test-bun
- validate-pr-title
- megalinter
- cli-schema
steps:
- run: |
if [[ "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
Expand Down
Loading
Loading