From 766cdc108a49ffdc62b95b4213d03cbb9079a984 Mon Sep 17 00:00:00 2001 From: 0xMRTT <0xmrtt@proton.me> Date: Wed, 26 Oct 2022 23:22:12 +0000 Subject: [PATCH] feat: improve ci --- .gitlab-ci.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cce7fc5..f4ed715 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,18 @@ image: "rust:latest" -test:cargo: +cargo:version: script: - rustc --version && cargo --version - - cargo test --workspace --verbose + +cargo:clippy: + before_script: + - rustup component add clippy + script: + - cargo clippy --no-deps -- -D clippy::all + +cargo:fmt: + before_script: + - rustup component add rustfmt + script: + - cargo fmt --check +