From ecdfd2148fe83d64bb2197090caaae6853c6d626 Mon Sep 17 00:00:00 2001 From: Michal S Date: Wed, 26 Oct 2022 12:09:47 +0100 Subject: [PATCH] Fix CI env --- .gitlab-ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7ed147d..5d7fb48 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,13 +1,17 @@ image: "rust:latest" -version:cargo: +cargo:version: script: - rustc --version && cargo --version -clippy:cargo: +cargo:clippy: + before_script: + - rustup component add clippy script: - cargo clippy --no-deps -- -D clippy::all -fmt:cargo: +cargo:fmt: + before_script: + - rustup component add rustfmt script: - cargo fmt --check