-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (32 loc) · 1.12 KB
/
lint-and-format.yml
File metadata and controls
41 lines (32 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Lint and Format - CodeQL Development MCP Server
on:
pull_request:
branches: ['main']
push:
branches: ['main']
workflow_dispatch:
permissions:
contents: read
jobs:
lint-and-format-markdown-and-yaml:
name: Lint and Format Checks for CodeQL Development MCP Server
runs-on: ubuntu-latest
steps:
- name: Lint and Format - Checkout repository
uses: actions/checkout@v6
- name: Lint and Format - Setup Node.js
uses: actions/setup-node@v6
with:
cache: 'npm'
node-version-file: '.node-version'
- name: Lint and Format - Install node dependencies for all workspaces
run: npm ci --workspaces
- name: Lint and Format - Run eslint
run: npm run lint
- name: Lint and Format - Run prettier format check
run: npm run format:check
- name: Lint and Format - Summary
run: |
echo "## Lint and Format Check Summary" >> $GITHUB_STEP_SUMMARY
echo "✅ ESLint checks completed on all workspaces" >> $GITHUB_STEP_SUMMARY
echo "✅ Prettier format checks completed" >> $GITHUB_STEP_SUMMARY