chore(deps-dev): bump @types/node from 22.20.0 to 26.0.0 in /packages/api-client #100
Workflow file for this run
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: CI — Typecheck + Build + OpenAPI Validation | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| typecheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| - run: npm ci | |
| - run: npm run typecheck | |
| build-sdk: | |
| needs: typecheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| - run: npm ci | |
| - run: cd packages/api-client && npm run build | |
| build-python: | |
| needs: typecheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - run: cd packages/python-sdk && pip install build && python -m build | |
| openapi-validate: | |
| needs: typecheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Validate OpenAPI spec | |
| run: | | |
| if [ -f "docs/api/openapi.yaml" ]; then | |
| npx --yes @redocly/cli lint docs/api/openapi.yaml --format=stylish | |
| else | |
| echo "No OpenAPI spec found — skipping" | |
| fi | |
| security-scan: | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Hardcoded secret check | |
| run: | | |
| grep -rn 'sk-[a-zA-Z0-9]\{20,\}' --include="*.ts" --include="*.tsx" --include="*.py" --exclude-dir=node_modules . 2>/dev/null && echo "WARNING: Hardcoded secret found" || echo "No hardcoded secrets" | |
| - name: Semgrep scan | |
| uses: semgrep/semgrep-action@v1 | |
| with: | |
| config: auto |