fix(ci): Frontend Lint所有步骤共享node_modules缓存volume
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1533h58m43s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1533h58m44s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1533h58m44s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1533h58m43s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 1533h58m44s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 1533h58m44s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 1533h58m44s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 1533h58m44s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 1533h58m44s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been skipped
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1534h30m21s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 1534h30m22s

This commit is contained in:
2026-07-14 17:29:22 +08:00
parent b639447a7c
commit 134e99bf9a
+24 -11
View File
@@ -585,23 +585,36 @@ jobs:
\ \\\n sh -lc 'npm ci'\n"
- name: Run ESLint
shell: sh
run: "set -eu\ndocker run --rm \\\n -v \"$PWD:/workspace\" \\\n -w /workspace/apps/web\
\ \\\n docker.m.daocloud.io/library/node:20 \\\n sh -lc 'npx eslint src\
\ --ext .ts,.tsx --max-warnings 50'\n"
run: "set -eu\nNPM_CACHE_VOLUME=\"xiaoxia-npm-cache\"\nif ! docker volume inspect\
\ \"$NPM_CACHE_VOLUME\" >/dev/null 2>&1; then\n docker volume create \"$NPM_CACHE_VOLUME\"\
\ >/dev/null\n echo \"Created npm cache volume: $NPM_CACHE_VOLUME\"\nfi\n\
docker run --rm \\\n -v \"$PWD:/workspace\" \\\n -v \"$NPM_CACHE_VOLUME:/workspace/apps/web/node_modules\"\
\ \\\n -w /workspace/apps/web \\\n docker.m.daocloud.io/library/node:20\
\ \\\n sh -lc 'npx eslint src --ext .ts,.tsx --max-warnings 50'\n"
- name: Run TypeScript type check
shell: sh
run: "set -eu\ndocker run --rm \\\n -v \"$PWD:/workspace\" \\\n -w /workspace/apps/web\
\ \\\n docker.m.daocloud.io/library/node:20 \\\n sh -lc 'npx tsc --noEmit'\n"
run: "set -eu\nNPM_CACHE_VOLUME=\"xiaoxia-npm-cache\"\nif ! docker volume inspect\
\ \"$NPM_CACHE_VOLUME\" >/dev/null 2>&1; then\n docker volume create \"$NPM_CACHE_VOLUME\"\
\ >/dev/null\n echo \"Created npm cache volume: $NPM_CACHE_VOLUME\"\nfi\n\
docker run --rm \\\n -v \"$PWD:/workspace\" \\\n -v \"$NPM_CACHE_VOLUME:/workspace/apps/web/node_modules\"\
\ \\\n -w /workspace/apps/web \\\n docker.m.daocloud.io/library/node:20\
\ \\\n sh -lc 'npx tsc --noEmit'\n"
- name: Run Prettier check
shell: sh
run: "set -eu\ndocker run --rm \\\n -v \"$PWD:/workspace\" \\\n -w /workspace/apps/web\
\ \\\n docker.m.daocloud.io/library/node:20 \\\n sh -lc 'npx prettier --check\
\ \"src/**/*.{ts,tsx,md}\"'\n"
run: "set -eu\nNPM_CACHE_VOLUME=\"xiaoxia-npm-cache\"\nif ! docker volume inspect\
\ \"$NPM_CACHE_VOLUME\" >/dev/null 2>&1; then\n docker volume create \"$NPM_CACHE_VOLUME\"\
\ >/dev/null\n echo \"Created npm cache volume: $NPM_CACHE_VOLUME\"\nfi\n\
docker run --rm \\\n -v \"$PWD:/workspace\" \\\n -v \"$NPM_CACHE_VOLUME:/workspace/apps/web/node_modules\"\
\ \\\n -w /workspace/apps/web \\\n docker.m.daocloud.io/library/node:20\
\ \\\n sh -lc 'npx prettier --check \"src/**/*.{ts,tsx,md}\"'\n"
- name: Run Vitest tests
shell: sh
run: "set -eu\ndocker run --rm \\\n -v \"$PWD:/workspace\" \\\n -w /workspace/apps/web\
\ \\\n docker.m.daocloud.io/library/node:20 \\\n sh -lc 'npx vitest run\
\ src/test'\n"
run: "set -eu\nNPM_CACHE_VOLUME=\"xiaoxia-npm-cache\"\nif ! docker volume inspect\
\ \"$NPM_CACHE_VOLUME\" >/dev/null 2>&1; then\n docker volume create \"$NPM_CACHE_VOLUME\"\
\ >/dev/null\n echo \"Created npm cache volume: $NPM_CACHE_VOLUME\"\nfi\n\
docker run --rm \\\n -v \"$PWD:/workspace\" \\\n -v \"$NPM_CACHE_VOLUME:/workspace/apps/web/node_modules\"\
\ \\\n -w /workspace/apps/web \\\n docker.m.daocloud.io/library/node:20\
\ \\\n sh -lc 'npx vitest run src/test'\n"
- name: Job duration summary
if: always()
shell: sh