-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (32 loc) · 1.28 KB
/
lint-and-format.yml
File metadata and controls
41 lines (32 loc) · 1.28 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', 'next']
push:
branches: ['main', 'next']
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Lint and Format - Setup Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
cache: 'npm'
node-version-file: '.node-version'
- name: Lint and Format - Install node dependencies for all workspaces
run: npm ci --ignore-scripts
- 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
echo "✅ Markdownlint checks completed" >> $GITHUB_STEP_SUMMARY