Fix: Observability API signature update and Azure AI Foundry endpoint compatibility(Langchain Nodejs) #129
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
| # Copyright (c) Microsoft Corporation. | |
| # Licensed under the MIT License. | |
| name: E2E - Node.js LangChain | |
| on: | |
| workflow_call: # Allow orchestrator to call this workflow | |
| workflow_dispatch: # Allow manual triggering | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'nodejs/langchain/**' | |
| - 'scripts/e2e/**' | |
| - '.github/workflows/e2e-nodejs-langchain.yml' | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - 'nodejs/langchain/**' | |
| - 'scripts/e2e/**' | |
| permissions: | |
| contents: read | |
| env: | |
| SAMPLE_PATH: nodejs/langchain/sample-agent | |
| AGENT_PORT: 3979 | |
| SCRIPTS_PATH: scripts/e2e | |
| E2E_TESTS_PATH: tests/e2e | |
| jobs: | |
| nodejs-langchain: | |
| name: Node.js LangChain Agent | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| working-directory: ${{ env.SAMPLE_PATH }} | |
| run: | | |
| if (Test-Path "package-lock.json") { | |
| npm ci | |
| } else { | |
| npm install | |
| } | |
| if (Test-Path "tsconfig.json") { | |
| npm run build | |
| } | |
| shell: pwsh | |
| - name: Log SDK Versions | |
| shell: pwsh | |
| run: | | |
| & "${{ env.SCRIPTS_PATH }}/Get-SDKVersions.ps1" ` | |
| -Runtime "nodejs" ` | |
| -WorkingDirectory "${{ env.SAMPLE_PATH }}" | |