CI: force using argfile to test againg `cargo fix`

This commit is contained in:
Weihang Lo 2022-04-10 22:21:48 +08:00
parent d813739c76
commit 275b0c68d4
No known key found for this signature in database
GPG Key ID: D7DBF189825E82E7
1 changed files with 7 additions and 0 deletions

View File

@ -68,6 +68,13 @@ jobs:
# Deny warnings on CI to avoid warnings getting into the codebase.
- run: cargo test --features 'deny-warnings'
- name: Check operability of rustc invocation with argfile
env:
__CARGO_TEST_FORCE_ARGFILE: 1
run: |
# This only tests `cargo fix` because fix-proxy-mode is one of the most
# complicated subprocess management in Cargo.
cargo test --test testsuite --features 'deny-warnings' -- fix::
- run: cargo test --features 'deny-warnings' --manifest-path crates/cargo-test-support/Cargo.toml
env:
CARGO_TARGET_DIR: target