Skip to content

Commit e1c834e

Browse files
Copilotsxjeru
andauthored
ci: add lint workflow and update changelog
Agent-Logs-Url: https://github.com/sxjeru/CLIProxyAPI-Monitor/sessions/4dead3e2-6fd2-48ee-ac31-a7acb400c2ad Co-authored-by: sxjeru <20513115+sxjeru@users.noreply.github.com>
1 parent df27c1a commit e1c834e

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request:
9+
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 22
21+
cache: pnpm
22+
23+
- name: Setup pnpm
24+
run: corepack enable
25+
26+
- name: Install dependencies
27+
run: pnpm install --frozen-lockfile
28+
29+
- name: Run lint
30+
run: pnpm lint

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CHANGELOG
22

3+
## 2026-04-21
4+
5+
- 新增 GitHub Actions `lint` 工作流(`.github/workflows/lint.yml`):
6+
-`push``main/master`)与 `pull_request` 触发,统一执行 `pnpm install --frozen-lockfile``pnpm lint`
7+
- 通过 CI 自动校验代码风格,减少未被本地发现的 lint 问题进入主分支。
8+
39
## 2026-04-15
410

511
- 兼容 TypeScript 6.0.2 编译配置:

0 commit comments

Comments
 (0)