Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@


stages:
- lint
- test
- publish

Expand Down Expand Up @@ -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:
Expand Down