diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..12e0f88 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,18 @@ +stages: + - test + +image: rust:latest + +before_script: + - rustup component add clippy + - rustup component add rustfmt + +clippy: + stage: test + script: + - cargo clippy -- -D warnings + +rustfmt: + stage: test + script: + - cargo fmt -- --check