Skip to content

Upgrade CodeQL CLI dependency to v2.26.2 (#329) #629

Upgrade CodeQL CLI dependency to v2.26.2 (#329)

Upgrade CodeQL CLI dependency to v2.26.2 (#329) #629

Workflow file for this run

name: Build Server - CodeQL Development MCP Server
on:
pull_request:
branches: ['main', 'next']
paths:
- '.github/workflows/build-server.yml'
- '.node-version'
- 'package.json'
- 'package-lock.json'
- 'server/**'
push:
branches: ['main', 'next']
paths:
- '.github/workflows/build-server.yml'
- '.node-version'
- 'package.json'
- 'package-lock.json'
- 'server/**'
permissions:
contents: read
jobs:
build-server:
name: Build Server (Node ${{ matrix.node }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: ['.node-version', '26']
defaults:
run:
working-directory: server
steps:
- name: Build Server - Checkout repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Build Server - Setup Node.js environment (from .node-version)
if: matrix.node == '.node-version'
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
cache: 'npm'
node-version-file: '.node-version'
- name: Build Server - Setup Node.js environment (explicit version)
if: matrix.node != '.node-version'
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
cache: 'npm'
node-version: ${{ matrix.node }}
- name: Build Server - Install dependencies
run: npm ci --include=optional --ignore-scripts
working-directory: .
- name: Build Server - Clean previous build
run: npm run clean
- name: Build Server - Run tests with coverage
run: npm run test:coverage
- name: Build Server - Bundle application
run: npm run bundle
- name: Build Server - 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 Server - Summary
run: |
echo "## Build Server Summary" >> $GITHUB_STEP_SUMMARY
echo "✅ ESLint checks completed" >> $GITHUB_STEP_SUMMARY
echo "✅ All tests passed with coverage" >> $GITHUB_STEP_SUMMARY
echo "✅ Application bundled successfully" >> $GITHUB_STEP_SUMMARY
echo "✅ No uncommitted changes detected" >> $GITHUB_STEP_SUMMARY