Merge pull request #66 from agentage/dependabot/npm_and_yarn/typescri… #88
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 | |
| on: | |
| push: | |
| branches: [master] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| env: | |
| NODE_VERSION: '20' | |
| jobs: | |
| test: | |
| name: 🧪 Verify Packages | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 📥 Checkout code | |
| uses: actions/checkout@v5 | |
| - name: 🔧 Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: 'npm' | |
| - name: 📦 Install dependencies | |
| run: npm ci | |
| - name: 🏗️ Build packages | |
| run: npm run build | |
| - name: ✅ Verify all packages | |
| run: npm run verify | |
| - name: ✅ All checks passed | |
| run: echo "🎉 All CI checks passed successfully!" | |
| verify-examples: | |
| name: 🔍 Verify Examples | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 📥 Checkout code | |
| uses: actions/checkout@v5 | |
| - name: 🔧 Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: 'npm' | |
| - name: 📦 Install dependencies | |
| run: npm ci | |
| - name: 🏗️ Build packages | |
| run: npm run build | |
| - name: 🔍 Verify examples | |
| run: | | |
| echo "🔍 Verifying examples..." | |
| for example_dir in examples/*; do | |
| if [ ! -d "$example_dir" ]; then | |
| continue | |
| fi | |
| example_name=$(basename "$example_dir") | |
| echo "" | |
| echo "📦 Verifying example: $example_name" | |
| cd "$example_dir" | |
| # Install dependencies | |
| npm install | |
| # Type check | |
| if [ -f "tsconfig.json" ]; then | |
| echo " 🔍 Type checking..." | |
| npx tsc --noEmit | |
| fi | |
| cd ../.. | |
| echo " ✅ $example_name verified" | |
| done | |
| echo "" | |
| echo "✅ All examples verified successfully!" |