Skip to content

feat: add API validation script with Zod schemas and CI workflow inte… #10

feat: add API validation script with Zod schemas and CI workflow inte…

feat: add API validation script with Zod schemas and CI workflow inte… #10

Workflow file for this run

name: API & Schema Validation
permissions:
contents: read
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: api-validation-${{ github.ref }}
cancel-in-progress: true
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Run API & Schema Validation
run: npm run validate-api
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}