23 lines
351 B
YAML
23 lines
351 B
YAML
image: "registry.nickbland.dev/nickbland/rust-docker-ci:latest"
|
|
|
|
default:
|
|
before_script:
|
|
- rustc --version && cargo --version
|
|
|
|
stages:
|
|
- test
|
|
|
|
test-code:
|
|
stage: test
|
|
script:
|
|
- cargo test --verbose
|
|
|
|
lint-code:
|
|
stage: test
|
|
script:
|
|
- cargo clippy -- -D warnings
|
|
|
|
format-code:
|
|
stage: test
|
|
script:
|
|
- cargo fmt -- --check |