Refactor project structure to use pnpm monorepo; update Dockerfile and related configurations for frontend build process. Adjust .dockerignore and .gitignore to reflect new paths. Modify .env.example for cron job timing. Update CONTRIBUTING.md and README.md for new development instructions.
Build, Test, and Push CFDM Docker Image / test (push) Failing after 3h13m2s
Build, Test, and Push CFDM Docker Image / create-release (push) Has been cancelled
Build, Test, and Push CFDM Docker Image / build-and-push (push) Has been cancelled
Build, Test, and Push CFDM Docker Image / update-wiki (push) Has been cancelled

This commit is contained in:
Denozordec
2026-06-15 15:37:36 +07:00
parent 87789fa82d
commit b1467575c5
803 changed files with 16646 additions and 8251 deletions
+11 -7
View File
@@ -4,8 +4,9 @@ FROM rust:1.85-bookworm AS test
WORKDIR /app
RUN apt-get update && apt-get install -y pkg-config libssl-dev curl && rm -rf /var/lib/apt/lists/*
# Node for frontend tests
# Node + pnpm for frontend tests
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && apt-get install -y nodejs
RUN corepack enable
COPY backend/Cargo.toml backend/Cargo.lock* ./backend/
COPY backend/migrations ./backend/migrations/
@@ -13,10 +14,13 @@ COPY backend/src ./backend/src/
WORKDIR /app/backend
RUN cargo test --release
COPY frontend/package.json frontend/package-lock.json /app/frontend/
WORKDIR /app/frontend
RUN npm ci
COPY frontend/ /app/frontend/
RUN npm run test
COPY package.json pnpm-workspace.yaml pnpm-lock.yaml /app/
COPY apps/web/package.json /app/apps/web/
COPY packages/ui/package.json /app/packages/ui/
WORKDIR /app
RUN pnpm install --frozen-lockfile
COPY apps/web /app/apps/web
COPY packages/ui /app/packages/ui
RUN pnpm --filter web test
CMD ["sh", "-c", "cd /app/backend && cargo test && cd /app/frontend && npm run test"]
CMD ["sh", "-c", "cd /app/backend && cargo test && cd /app && pnpm --filter web test"]