chore: 更新 setup-node-environment 版本并添加静态代码分析工作流
This commit is contained in:
20
.github/workflows/lint.yaml
vendored
Normal file
20
.github/workflows/lint.yaml
vendored
Normal 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 存在
|
Reference in New Issue
Block a user