ci: always run the clippy and rustfmt jobs

Unless they are explicitly marked, they won't
run on detached pipelines by default
This commit is contained in:
Jordan Petridis 2020-04-30 19:19:48 +03:00
parent 3d2792a1c3
commit 896bda12f9
No known key found for this signature in database
GPG key ID: E8523968931763BE

View file

@ -151,6 +151,8 @@ test nightly:
rustfmt:
extends: .img-stable
stage: "lint"
rules:
- when: 'always'
script:
- cargo fmt --version
- cargo fmt -- --color=always --check
@ -158,6 +160,8 @@ rustfmt:
clippy:
extends: .img-stable
stage: 'extras'
rules:
- when: 'always'
script:
- cargo clippy --color=always --all --all-features --all-targets -- -A clippy::redundant_pattern_matching -A clippy::single_match -A clippy::cast_lossless -D warnings