From a489cb85c9176caa3051feef264b155ff435b256 Mon Sep 17 00:00:00 2001 From: Ava Hahn Date: Wed, 1 Mar 2023 11:17:33 -0800 Subject: [PATCH] update CI with more phases Signed-off-by: Ava Hahn --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7eb6215..6e3660b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,20 @@ default: image: rust:latest +fmt: + stage: lint + script: + - rustfmt --check tests/* + - rustfmt --check src/*.rs + - rustfmt --check src/stl/* + - rustfmt --check src/bin/* + +lint: + stage: lint + script: + - cargo clippy + allow_failure: true + compile: stage: build script: