diff options
| -rw-r--r-- | .gitlab-ci.yml | 8 | ||||
| -rw-r--r-- | Makefile | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cf5e6ff5..375ce308 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,15 +36,13 @@ unit: stage: test needs: [] script: - - cargo test + - make test lint: image: rust:latest stage: test needs: [] before_script: - - rustup component add clippy - - rustup component add rustfmt + - make setup script: - - cargo fmt - - cargo clippy -- -D warnings + - make lint @@ -5,6 +5,9 @@ IMAGE_TAG := $(PROJECT_NAME):$(GIT_BRANCH) .PHONY: build check test run clean fmt lint doc .PHONY: build-image run-image health-check list-services test-grpc +setup: + @rustup component add clippy rustfmt + # Cargo targets build: @cargo build |
