From 40fcd2846a5897179a59e038a869dbe3310a32b8 Mon Sep 17 00:00:00 2001 From: jan Michal Date: Wed, 26 Jan 2022 22:56:19 +0000 Subject: [PATCH] added CI --- .gitlab-ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..39a6a8c --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,27 @@ +image: "rust:latest" + +default: + before_script: + - rustc --version + - cargo --version + +stages: + - test + +lint-code: + stage: test + script: + - rustup component add clippy + - cargo clippy -- -D warnings + +format-code: + stage: test + script: + - rustup component add rustfmt + - cargo fmt -- --check + +audit-code: + stage: test + script: + - cargo install cargo-audit + - cargo audit