fix(ci): 调整frontend-lint配置 - ESLint对齐本地/移除Prettier/超时改15分钟/Vitest用默认配置
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 28s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 3m2s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Unit Tests (pull_request) Failing after 6m55s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m2s

This commit is contained in:
2026-07-13 15:21:14 +08:00
parent 1fed000fd5
commit d37b358978
+3 -13
View File
@@ -480,7 +480,7 @@ jobs:
frontend-lint:
name: Frontend Lint
runs-on: host
timeout-minutes: 10
timeout-minutes: 15
steps:
- name: Checkout code
@@ -547,7 +547,7 @@ jobs:
-v "$PWD:/workspace" \
-w /workspace/apps/web \
docker.m.daocloud.io/library/node:20 \
sh -lc 'npx eslint src --ext .ts,.tsx --max-warnings 50'
sh -lc 'npx eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0'
- name: Run TypeScript type check
shell: sh
@@ -559,16 +559,6 @@ jobs:
docker.m.daocloud.io/library/node:20 \
sh -lc 'npx tsc --noEmit'
- name: Run Prettier check
shell: sh
run: |
set -eu
docker run --rm \
-v "$PWD:/workspace" \
-w /workspace/apps/web \
docker.m.daocloud.io/library/node:20 \
sh -lc 'npx prettier --check "src/**/*.{ts,tsx,md}"'
- name: Run Vitest tests
shell: sh
run: |
@@ -577,7 +567,7 @@ jobs:
-v "$PWD:/workspace" \
-w /workspace/apps/web \
docker.m.daocloud.io/library/node:20 \
sh -lc 'npx vitest run src/test'
sh -lc 'npx vitest run'
- name: Notify CI failure
if: failure()