Skip to content

Commit 6bd5f6f

Browse files
rubenmarcusclaude
andcommitted
ci: simplify workflows and add path filters
- Remove redundant docs job from ci.yml (already in docs-check.yml) - Remove matrix testing (just use Node 20) - Remove security audit and CodeQL jobs - Add path filters: CI skips docs/md changes, docs-check only runs on docs changes Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent caed89b commit 6bd5f6f

File tree

2 files changed

+12
-86
lines changed

2 files changed

+12
-86
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,27 @@ name: CI
33
on:
44
push:
55
branches: [main]
6+
paths-ignore:
7+
- 'docs/**'
8+
- '*.md'
69
pull_request:
710
branches: [main]
11+
paths-ignore:
12+
- 'docs/**'
13+
- '*.md'
814

915
jobs:
10-
# Main CLI package with matrix testing
1116
main-cli:
12-
name: Main CLI (Node ${{ matrix.node-version }})
17+
name: Main CLI
1318
runs-on: ubuntu-latest
14-
strategy:
15-
matrix:
16-
node-version: ['18', '20', '22']
17-
fail-fast: false
1819
steps:
1920
- name: Checkout
2021
uses: actions/checkout@v4
2122

2223
- name: Setup Node.js
2324
uses: actions/setup-node@v4
2425
with:
25-
node-version: ${{ matrix.node-version }}
26+
node-version: '20'
2627
cache: 'npm'
2728

2829
- name: Install dependencies
@@ -39,82 +40,3 @@ jobs:
3940

4041
- name: Test
4142
run: npm test
42-
43-
# Documentation site
44-
docs:
45-
name: Documentation
46-
runs-on: ubuntu-latest
47-
defaults:
48-
run:
49-
working-directory: docs
50-
steps:
51-
- name: Checkout
52-
uses: actions/checkout@v4
53-
54-
- name: Setup Node.js
55-
uses: actions/setup-node@v4
56-
with:
57-
node-version: '20'
58-
cache: 'npm'
59-
cache-dependency-path: docs/package-lock.json
60-
61-
- name: Install dependencies
62-
run: npm ci
63-
64-
- name: Type check
65-
run: npm run typecheck
66-
67-
- name: Lint
68-
run: npm run lint
69-
70-
- name: Build
71-
run: npm run build
72-
73-
# Security audit
74-
security:
75-
name: Security Audit
76-
runs-on: ubuntu-latest
77-
steps:
78-
- name: Checkout
79-
uses: actions/checkout@v4
80-
81-
- name: Setup Node.js
82-
uses: actions/setup-node@v4
83-
with:
84-
node-version: '20'
85-
cache: 'npm'
86-
87-
- name: Install dependencies
88-
run: npm ci
89-
90-
- name: Run npm audit
91-
run: npm audit --audit-level=high
92-
93-
- name: Check for known vulnerabilities
94-
run: npx audit-ci --high
95-
continue-on-error: true
96-
97-
# CodeQL security analysis
98-
codeql:
99-
name: CodeQL Analysis
100-
runs-on: ubuntu-latest
101-
permissions:
102-
security-events: write
103-
actions: read
104-
contents: read
105-
steps:
106-
- name: Checkout
107-
uses: actions/checkout@v4
108-
109-
- name: Initialize CodeQL
110-
uses: github/codeql-action/init@v3
111-
with:
112-
languages: javascript-typescript
113-
114-
- name: Autobuild
115-
uses: github/codeql-action/autobuild@v3
116-
117-
- name: Perform CodeQL Analysis
118-
uses: github/codeql-action/analyze@v3
119-
with:
120-
category: "/language:javascript-typescript"

.github/workflows/docs-check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Documentation Check
33
on:
44
pull_request:
55
branches: [main]
6+
paths:
7+
- 'docs/**'
8+
- 'README.md'
9+
- 'CHANGELOG.md'
610

711
jobs:
812
check-docs-updated:

0 commit comments

Comments
 (0)