add test to openvm Dockefile

This commit is contained in:
Kevaundray Wedderburn
2025-05-12 21:35:22 +01:00
parent e1333f054c
commit 5bf4fb8f9c

View File

@@ -20,4 +20,13 @@ ENV OPENVM_TOOLCHAIN_VERSION="nightly-2025-02-14"
# Verify cargo-openvm is accessible with the correct toolchain
RUN cargo "+${OPENVM_TOOLCHAIN_VERSION}" openvm --version
# Copy the entire ere project context
# The WORKDIR is /app from the base image
WORKDIR /app
COPY . .
# Run tests
RUN echo "Running tests for ere-openvm library..." && \
cargo test --release -p ere-openvm --lib -- --color always
CMD ["/bin/bash"]