Run cargo check for each crate with different features (ref #2284) (#2292)

This commit is contained in:
Nutomic 2022-06-02 18:19:53 +00:00 committed by GitHub
parent 13ca1111c4
commit 9a458d2e4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 7 deletions

View file

@ -25,12 +25,9 @@ steps:
- name: check with different features
image: clux/muslrust:1.59.0
commands:
# api with minimal deps
- cargo check -p lemmy_api_common
# opentelemetry console
- cargo check --features console
# default features
- cargo check
- cargo install cargo-workspaces
- cargo workspaces exec cargo check --no-default-features
- cargo workspaces exec cargo check --all-features
- name: cargo clippy
image: clux/muslrust:1.59.0

View file

@ -14,7 +14,7 @@ doctest = false
[dependencies]
lemmy_utils = { version = "=0.16.5", path = "../utils" }
lemmy_api_common = { version = "=0.16.5", path = "../api_common" }
lemmy_api_common = { version = "=0.16.5", path = "../api_common", features = ["full"] }
lemmy_db_schema = { version = "=0.16.5", path = "../db_schema", features = ["full"] }
lemmy_db_views = { version = "=0.16.5", path = "../db_views", features = ["full"] }
lemmy_db_views_actor = { version = "=0.16.5", path = "../db_views_actor", features = ["full"] }