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
27 lines
874 B
Docker
27 lines
874 B
Docker
# 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 + 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/
|
|
COPY backend/src ./backend/src/
|
|
WORKDIR /app/backend
|
|
RUN cargo test --release
|
|
|
|
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 && pnpm --filter web test"]
|