check:
  extends: .recompile-branch
  stage: check-compile
  tags:
    - veloren-docker
  script:
    - ln -s /dockercache/cache-all target
    - RUSTFLAGS="-D warnings" cargo check --locked

code-quality:
  extends: .recompile-branch
  stage: check-compile
  tags:
    - veloren-docker
  script:
    - ln -s /dockercache/cache-all target
    - cargo clippy -- -D warnings
    - cargo fmt --all -- --check

security:
  extends: .recompile-branch
  stage: check-compile
  allow_failure: true
  tags:
    - veloren-docker
  script:
    - ln -s /dockercache/cache-all target
    - cargo audit