diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5b7a9c85c5a..a46b1fc8d03 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,7 @@ stages: + - lint - test - publish @@ -67,6 +68,24 @@ variables: &default-vars paths: - ./artifacts/ +#### stage: lint + +fmt: + stage: lint + image: "${CI_IMAGE}" + <<: *kubernetes-env + script: + - cargo +nightly fmt --all -- --check + +clippy: + stage: lint + <<: *docker-env + script: + # add clippy is temporary until tests in substrate are not fixed + # https://github.com/paritytech/substrate/pull/9637 + - rustup component add clippy --toolchain nightly-x86_64-unknown-linux-gnu + - cargo +nightly clippy -- -D warnings + #### stage: test test-linux-stable: