mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
8c883c200d
adjusted those examples to run again created a CI TEST to always `check` examples fixed fmt in examples so that pipeline gets green
25 lines
583 B
YAML
25 lines
583 B
YAML
check:
|
|
extends: .recompile-branch
|
|
stage: check
|
|
script:
|
|
- ln -s /dockercache/cache-all target
|
|
- RUSTFLAGS="-D warnings" cargo check --locked
|
|
- RUSTFLAGS="-D warnings" cargo check --examples --locked
|
|
|
|
code-quality:
|
|
extends: .recompile-branch
|
|
stage: check
|
|
script:
|
|
- ln -s /dockercache/cache-all target
|
|
- cargo clippy -- -D warnings
|
|
- cargo clippy --tests -- -D warnings
|
|
- cargo fmt --all -- --check
|
|
|
|
security:
|
|
extends: .recompile-branch
|
|
stage: check
|
|
allow_failure: true
|
|
script:
|
|
- ln -s /dockercache/cache-all target
|
|
- cargo audit
|