Build(deps-dev): update eslint requirement from ^10.0.0 to ^10.0.1 in /extensions/vscode #10
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 Extension - CodeQL Development MCP Server | |
| on: | |
| pull_request: | |
| branches: ['main'] | |
| paths: | |
| - '.github/workflows/build-extension.yml' | |
| - '.node-version' | |
| - 'extensions/vscode/**' | |
| - 'server/dist/**' | |
| - 'server/ql/*/tools/src/**' | |
| push: | |
| branches: ['main'] | |
| paths: | |
| - '.github/workflows/build-extension.yml' | |
| - '.node-version' | |
| - 'extensions/vscode/**' | |
| - 'server/dist/**' | |
| - 'server/ql/*/tools/src/**' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-extension: | |
| name: Build Extension | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Build Extension - Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Build Extension - Setup Node.js environment | |
| uses: actions/setup-node@v6 | |
| with: | |
| cache: 'npm' | |
| node-version-file: '.node-version' | |
| - name: Build Extension - Install dependencies | |
| run: npm ci --include=optional | |
| - name: Build Extension - Build server (dependency) | |
| run: npm run build -w server | |
| - name: Build Extension - Run extension tests with coverage | |
| working-directory: extensions/vscode | |
| run: npm run test:coverage | |
| - name: Build Extension - Bundle extension and server | |
| working-directory: extensions/vscode | |
| run: | | |
| npm run clean | |
| npm run lint | |
| npm run bundle | |
| npm run bundle:server | |
| - name: Build Extension - Verify VSIX packaging | |
| working-directory: extensions/vscode | |
| run: npx @vscode/vsce package --no-dependencies --out codeql-development-mcp-server.vsix | |
| - name: Build Extension - Verify VSIX contents | |
| working-directory: extensions/vscode | |
| run: | | |
| echo "## VSIX Contents" >> $GITHUB_STEP_SUMMARY | |
| echo '```' >> $GITHUB_STEP_SUMMARY | |
| npx @vscode/vsce ls --no-dependencies --tree 2>&1 | head -50 >> $GITHUB_STEP_SUMMARY | |
| echo '```' >> $GITHUB_STEP_SUMMARY | |
| - name: Build Extension - Check for uncommitted changes | |
| run: | | |
| if [ -n "$(git status --porcelain)" ]; then | |
| echo "❌ Uncommitted changes detected after build:" | |
| git status --porcelain | |
| git diff | |
| exit 1 | |
| else | |
| echo "✅ No uncommitted changes after build" | |
| fi | |
| - name: Build Extension - Summary | |
| run: | | |
| echo "## Build Extension Summary" >> $GITHUB_STEP_SUMMARY | |
| echo "✅ ESLint checks completed" >> $GITHUB_STEP_SUMMARY | |
| echo "✅ All tests passed with coverage" >> $GITHUB_STEP_SUMMARY | |
| echo "✅ Extension bundled successfully" >> $GITHUB_STEP_SUMMARY | |
| echo "✅ Server bundled into extension" >> $GITHUB_STEP_SUMMARY | |
| echo "✅ VSIX packaging verified" >> $GITHUB_STEP_SUMMARY | |
| echo "✅ No uncommitted changes detected" >> $GITHUB_STEP_SUMMARY |