mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-03 06:12:14 +08:00
feat: add lint check of front-end (#534)
* feat: add lint check of front-end * add pnpm installation * add pnpm installation
This commit is contained in:
35
.github/workflows/lint.yaml
vendored
35
.github/workflows/lint.yaml
vendored
@@ -28,4 +28,37 @@ jobs:
|
||||
- name: Run linters
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
make lint
|
||||
make lint
|
||||
|
||||
lint-frontend:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
|
||||
- name: Install pnpm
|
||||
run: npm install -g pnpm
|
||||
|
||||
- name: Install frontend dependencies
|
||||
run: |
|
||||
cd web
|
||||
pnpm install --frozen-lockfile
|
||||
|
||||
- name: Run frontend linting
|
||||
run: |
|
||||
cd web
|
||||
pnpm lint
|
||||
|
||||
- name: Check TypeScript types
|
||||
run: |
|
||||
cd web
|
||||
pnpm typecheck
|
||||
|
||||
- name: Build frontend
|
||||
run: |
|
||||
cd web
|
||||
pnpm build
|
||||
Reference in New Issue
Block a user