INIT COMMIT
Build, Test, and Push CFDM Docker Image / test (push) Failing after 1m51s
Build, Test, and Push CFDM Docker Image / build-and-push (push) Has been skipped
Build, Test, and Push CFDM Docker Image / update-wiki (push) Has been skipped
Build, Test, and Push CFDM Docker Image / create-release (push) Has been skipped

This commit is contained in:
Denozordec
2026-06-13 16:43:52 +07:00
commit 87789fa82d
120 changed files with 13055 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
# syntax=docker/dockerfile:1
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
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && apt-get install -y nodejs
COPY backend/Cargo.toml backend/Cargo.lock* ./backend/
COPY backend/migrations ./backend/migrations/
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
CMD ["sh", "-c", "cd /app/backend && cargo test && cd /app/frontend && npm run test"]