Skip to content

Commit d49f3e8

Browse files
committed
ci: add clippy checks for gateway
1 parent 1a87889 commit d49f3e8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/build.yml

+7
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,13 @@ jobs:
556556
cargo fmt --check
557557
exit $(docker wait gateway-format)
558558
559+
- name: Clippy check
560+
run: |
561+
docker run --name=gateway-clippy --net=host -v $PWD/output:/output \
562+
${{ fromJSON(needs.build.outputs.stable_tags).gateway-test }} \
563+
cargo clippy --all-features --all-targets -- -D warnings
564+
exit $(docker wait gateway-clippy)
565+
559566
check_front:
560567
runs-on: ubuntu-latest
561568
needs:

gateway/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ RUN cargo install --locked --path .
2828
FROM chef AS testing_env
2929
RUN rustup component add llvm-tools && \
3030
rustup component add rustfmt && \
31+
rustup component add clippy && \
3132
cargo install --locked grcov
3233
COPY --from=planner /app/recipe.json recipe.json
3334

0 commit comments

Comments
 (0)