Use Azure Open AI model in NodeJS OpenAI Sample #60
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: CI - Build Node.js OpenAI Sample Agent | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| paths: | |
| - 'nodejs/openai/sample-agent/**/*' | |
| pull_request: | |
| branches: [ main, master ] | |
| paths: | |
| - 'nodejs/openai/sample-agent/**/*' | |
| jobs: | |
| nodejs-openai-sampleagent: | |
| name: Node.js OpenAI Sample Agent | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./nodejs/openai/sample-agent | |
| strategy: | |
| matrix: | |
| node-version: ['18', '20'] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build | |
| run: npm run build |