Add friendly name for Power BI MCP tool #1501
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: Build | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-and-test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| node-version: [18.x, 20.x] | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| cache-dependency-path: vscode-extension/package-lock.json | |
| - name: Install dependencies | |
| working-directory: vscode-extension | |
| run: npm ci | |
| - name: Validate JSON files | |
| working-directory: vscode-extension | |
| run: npm run lint:json | |
| - name: Run linting | |
| working-directory: vscode-extension | |
| run: npm run lint | |
| - name: Run type checking | |
| working-directory: vscode-extension | |
| run: npm run check-types | |
| - name: Compile extension | |
| working-directory: vscode-extension | |
| run: npm run compile | |
| - name: Build production package | |
| working-directory: vscode-extension | |
| run: npm run package | |
| - name: Compile tests | |
| working-directory: vscode-extension | |
| run: npm run compile-tests | |
| - name: Verify build outputs exist | |
| shell: bash | |
| run: | | |
| if [ ! -f "vscode-extension/dist/extension.js" ]; then | |
| echo "❌ vscode-extension/dist/extension.js not found" | |
| exit 1 | |
| fi | |
| if [ ! -d "vscode-extension/out" ]; then | |
| echo "❌ vscode-extension/out directory not found" | |
| exit 1 | |
| fi | |
| echo "✅ Build outputs verified" | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20.x' | |
| with: | |
| name: build-artifacts | |
| path: | | |
| vscode-extension/dist/extension.js | |
| vscode-extension/dist/extension.js.map | |
| vscode-extension/out/ | |
| retention-days: 7 |