]> git.proxmox.com Git - cargo.git/commitdiff
CI: force using argfile to test againg `cargo fix`
authorWeihang Lo <me@weihanglo.tw>
Sun, 10 Apr 2022 14:21:48 +0000 (22:21 +0800)
committerWeihang Lo <me@weihanglo.tw>
Sun, 10 Apr 2022 14:40:26 +0000 (22:40 +0800)
.github/workflows/main.yml

index c009816a30246208c07905c343e7efdfe029d2b4..0e0c888854ca92d840a6f00f405d4cf482d07294 100644 (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