Skip to content

Commit

Permalink
Run unit tests without default features only for specific crates (#1321)
Browse files Browse the repository at this point in the history
Related #981
  • Loading branch information
xgreenx authored Aug 28, 2023
1 parent e0e82fe commit f159b24
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,12 @@ jobs:
args: check --locked
- command: test
args: --all-features --workspace
# use cargo make test to avoid workspace feature unification
- command: make
args: test --no-default-features
- command: test
args: -p fuel-core --no-default-features
- command: test
args: -p fuel-core-client --no-default-features
- command: test
args: -p fuel-core-chain-config --no-default-features
- command: test
args: --manifest-path version-compatibility/Cargo.toml --workspace
- command: build
Expand Down
4 changes: 3 additions & 1 deletion ci_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ cargo clippy --all-targets --all-features &&
cargo make check --locked &&
cargo make check --all-features --locked &&
cargo test --all-features --workspace &&
cargo make test --no-default-features &&
cargo test -p fuel-core --no-default-features &&
cargo test -p fuel-core-client --no-default-features &&
cargo test -p fuel-core-chain-config --no-default-features &&
cargo test --manifest-path version-compatibility/Cargo.toml --workspace

0 comments on commit f159b24

Please sign in to comment.