Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
ee4edd2
init repo commit
sainathsapa Apr 8, 2026
7a0f7b8
init repo commit
sainathsapa Apr 8, 2026
07afe07
chore: finalize SDK metadata and README mappings
sainathsapa Apr 8, 2026
52836af
chore: sync automation scripts with template configuration updates
sainathsapa Apr 8, 2026
3404fb7
ci: optimize and harden multi-stage SDK release pipeline
sainathsapa Apr 8, 2026
5be4c57
ci: optimize and harden multi-stage SDK release pipeline
sainathsapa Apr 8, 2026
2cc0e18
ci: optimize and harden multi-stage SDK release pipeline
sainathsapa Apr 8, 2026
53c155c
fix: resolve Go compilation errors and harmonize environment
sainathsapa Apr 8, 2026
d71e501
fix: resolve Go 'undefined: Any' compilation errors
sainathsapa Apr 8, 2026
1fbd6b5
fix: resolve Go SDK syntax
sainathsapa Apr 8, 2026
88d764a
fix: resolve Kotlin/Ruby generation failures and restore smoke tests
sainathsapa Apr 8, 2026
a9609c3
fix: resolve TypeScript/Rust generation failures and harden all SDK b…
sainathsapa Apr 8, 2026
5c7de81
fix: resolve multiple SDK build failures in release pipeline
sainathsapa Apr 8, 2026
e9b7e1c
fix: resolve multiple SDK build failures in release pipeline
sainathsapa Apr 8, 2026
f9c844e
fix: resolve parallel race condition in SDK generation
sainathsapa Apr 8, 2026
8d4979d
fix: resolve parallel race condition in SDK generation
sainathsapa Apr 8, 2026
5b2b26f
fix: resolve Go syntax and Kotlin serialization errors in SDK generation
sainathsapa Apr 8, 2026
9f89e76
fix: resolve Go syntax and Kotlin serialization errors via generator …
sainathsapa Apr 8, 2026
5be65cc
fix: resolve Go syntax and Kotlin serialization errors via generator …
sainathsapa Apr 8, 2026
64350a3
fix: resolve Go syntax and Kotlin serialization errors via generator …
sainathsapa Apr 8, 2026
655f902
fix: resolve Go syntax and Kotlin serialization errors via generator …
sainathsapa Apr 8, 2026
472e46a
removed kotlin
sainathsapa Apr 8, 2026
dddec4a
removed kotlin
sainathsapa Apr 8, 2026
3320de0
removed kotlin
sainathsapa Apr 8, 2026
cc1ee80
paraller jobs
sainathsapa Apr 8, 2026
73eb6d1
paraller jobs
sainathsapa Apr 9, 2026
3dc0e64
paraller jobs
sainathsapa Apr 9, 2026
704e572
python toml fix
sainathsapa Apr 9, 2026
bae3cef
cs fix
sainathsapa Apr 9, 2026
09b6a0f
cs fix and repo copy
sainathsapa Apr 9, 2026
a307c78
CS fixed
sainathsapa Apr 9, 2026
4b10313
CS fixed
sainathsapa Apr 9, 2026
dc6fc65
CS fixed
sainathsapa Apr 9, 2026
a4d291e
CS fixed
sainathsapa Apr 9, 2026
8777e59
CS fixed
sainathsapa Apr 9, 2026
95f48c2
CS fixed
sainathsapa Apr 9, 2026
852f2fd
CS fixed
sainathsapa Apr 9, 2026
3a628e7
fix push
sainathsapa Apr 9, 2026
e894a97
fix push
sainathsapa Apr 9, 2026
e80bb3c
fix CSHARP
sainathsapa Apr 9, 2026
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
103 changes: 103 additions & 0 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
name: βš™οΈ Generate SDKs

on:
push:
branches:
- main
paths:
- openapi/keynetra.yaml
pull_request:
branches:
- main
paths:
- openapi/keynetra.yaml
workflow_dispatch:

permissions:
contents: write

jobs:
generate:
name: πŸ› οΈ Generate & Prepare SDKs
runs-on: ubuntu-latest

steps:
- name: πŸ“₯ Checkout Code
uses: actions/checkout@v4

- name: 🟒 Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- name: πŸ“¦ Install OpenAPI Generator
run: |
echo "Installing openapi-generator-cli..."
npm install @openapitools/openapi-generator-cli
echo "$(pwd)/node_modules/.bin" >> $GITHUB_PATH

- name: πŸš€ Run SDK Generation
run: |
chmod +x scripts/generate-all.sh scripts/prepare-packages.sh
./scripts/generate-all.sh

- name: πŸ’Ύ Commit & Push Changes
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
git config user.name "Keynetra.admin"
git config user.email "business.keynetra@gmail.com"
git add scripts templates openapi
if git diff --cached --quiet; then
echo "✨ No SDK changes detected."
exit 0
fi
git commit -m "chore(sdk): regenerate SDKs πŸ€–"
git push

- name: πŸ’Ύ Upload artifacts
uses: actions/upload-artifact@v4
with:
name: generated-sdks
path: sdks

smoke-test:
name: πŸ§ͺ Python Smoke Test
needs: generate
runs-on: ubuntu-latest
services:
keynetra:
image: docker.io/keynetra/keynetra:latest
ports:
- 8080:8080
options: >-
--health-cmd "(python3 -c 'import socket; s = socket.socket(socket.AF_INET, socket.SOCK_STREAM); s.connect((\"localhost\", 8080))' || python -c 'import socket; s = socket.socket(socket.AF_INET, socket.SOCK_STREAM); s.connect((\"localhost\", 8080))') || exit 1"
--health-interval 15s
--health-timeout 10s
--health-retries 10
steps:
- name: πŸ“₯ Checkout Code
uses: actions/checkout@v4

- name: πŸ“‚ Download SDKs
uses: actions/download-artifact@v4
with:
name: generated-sdks
path: sdks

- name: 🐍 Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"

- name: 🐍 Test Python Instantiation
run: |
cd tests/python
pip install pydantic urllib3 python-dateutil typing-extensions
echo "πŸ§ͺ Running Python SDK Instantiation Test..."
if python3 test_instantiation.py; then
echo "βœ… Python SDK Instantiation Test Passed!"
else
echo "❌ Python SDK Instantiation Test Failed!"
exit 1
fi
Loading
Loading