diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a1ba8a7..0cbd700 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,9 @@ image: rust:latest stages: - - build - - fmt - lint + - build + run-build: stage: build @@ -12,20 +12,13 @@ run-build: - rustc --version && cargo --version - cargo build --release --jobs 1 -run-fmt: - stage: fmt - image: rust:latest - before_script: - - rustup component add rustfmt - script: - - rustc --version && cargo --version - - cargo fmt -- --check - run-lint: stage: lint image: rust:latest before_script: + - rustup component add rustfmt - rustup component add clippy script: - rustc --version && cargo --version + - cargo fmt -- --check - cargo clippy --all-targets --all-features -- -D warnings