Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

feat: remove unused build steps #216

Merged
merged 1 commit into from
Apr 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,6 @@ COPY . .
RUN --mount=type=secret,id=aws,target=/root/.aws/credentials \
cargo build --release --no-default-features --features=${FEATURES}

FROM base AS test
RUN --mount=type=secret,id=aws,target=/root/.aws/credentials \
cargo install cargo-nextest --locked
COPY . .
# topos-sequencer integration tests require specific setup, so excluding them here. They are executed
# with sequencer_tcc_test.yml CI setup
RUN --mount=type=secret,id=aws,target=/root/.aws/credentials \
cargo nextest run --workspace --exclude topos-sequencer-subnet-runtime-proxy --config-file tools/config/nextest.toml && cargo test --doc --workspace

FROM base AS fmt
RUN rustup component add rustfmt
COPY . .
RUN cargo fmt --all -- --check

FROM base AS lint
RUN rustup default 1.68.0
RUN rustup component add clippy
COPY . .
RUN --mount=type=secret,id=aws,target=/root/.aws/credentials \
cargo clippy --all --tests

FROM base AS audit
RUN --mount=type=secret,id=aws,target=/root/.aws/credentials \
cargo install cargo-audit --locked
COPY . .
RUN cargo audit

FROM debian:bullseye-slim AS topos

ENV TCE_PORT=9090
Expand Down