From a63207ceb67c309c2507d1d508050faf0703f458 Mon Sep 17 00:00:00 2001 From: NickBland Date: Thu, 7 Apr 2022 03:36:53 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..adc596b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,30 @@ +image: "rust:latest" + +default: + before_script: + - rustc --version + - cargo --version + +stages: + - test + +test-code: + stage: test + script: + - cargo test + - cargo install cargo-tarpaulin + - cargo tarpaulin --ignore-tests + +lint-code: + stage: test + script: + - rustup component add rustfmt + - cargo fmt -- --check + - rustup component add clippy + - cargo clippy -- -D warnings + +audit-code: + stage: test + script: + - cargo install cargo-audit + - cargo audit \ No newline at end of file