chore: 更新 setup-node-environment 版本并添加静态代码分析工作流
All checks were successful
/ depcheck (push) Successful in 2m24s
/ lint-build-and-check (push) Successful in 2m35s
/ build-and-deploy-to-vercel (push) Successful in 3m4s
/ surge (push) Successful in 15m42s
/ playwright (push) Successful in 3m11s

This commit is contained in:
严浩
2025-03-10 11:00:34 +08:00
parent 8733c3e42e
commit ca1521328c
5 changed files with 27 additions and 11 deletions

20
.github/workflows/lint.yaml vendored Normal file
View File

@ -0,0 +1,20 @@
# https://cn.vitejs.dev/guide/static-deploy
defaults:
run:
shell: bash
env:
TZ: Asia/Shanghai
on:
push:
jobs:
lint-build-and-check:
runs-on: ubuntu-latest
steps:
- name: 🛠️ 设置Node环境
uses: yanhao98/composite-actions/setup-node-environment@e52959e47d50719e0882fc5be361021910ed481a
- name: 🔍 静态代码分析
run: pnpm run lint
- name: 📦 构建项目
run: pnpm run build-only
- name: ✅ 类型检查
run: pnpm run type-check # 要先 build保证 components.d.ts 存在