diff --git a/.github/workflows/cargo-audit.yml b/.github/workflows/cargo-audit.yml index dcd8383..796a0cd 100644 --- a/.github/workflows/cargo-audit.yml +++ b/.github/workflows/cargo-audit.yml @@ -19,4 +19,5 @@ jobs: - uses: actions/checkout@v2 - uses: actions-rs/audit-check@v1 with: + args: --color=always token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/cargo-clippy.yml b/.github/workflows/cargo-clippy.yml index bd271ff..3b459a8 100644 --- a/.github/workflows/cargo-clippy.yml +++ b/.github/workflows/cargo-clippy.yml @@ -20,5 +20,5 @@ jobs: components: clippy - uses: actions-rs/clippy-check@v1 with: - args: --all-targets --all-features -- -D warnings -D clippy::all + args: --all-targets --all-features --color=always -- -D warnings -D clippy::all token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/cargo-fmt.yml b/.github/workflows/cargo-fmt.yml index 5edca49..23fb9e8 100644 --- a/.github/workflows/cargo-fmt.yml +++ b/.github/workflows/cargo-fmt.yml @@ -18,4 +18,4 @@ jobs: - uses: actions-rs/cargo@v1 with: command: fmt - args: -- --check + args: -- --check --color=always diff --git a/.github/workflows/cargo-test.yml b/.github/workflows/cargo-test.yml index a4ad149..d827bca 100644 --- a/.github/workflows/cargo-test.yml +++ b/.github/workflows/cargo-test.yml @@ -14,12 +14,12 @@ jobs: - uses: actions/checkout@v2 - uses: cachix/install-nix-action@v12 with: - nix_path: nixpkgs=channel:nixos-unstable + nix_path: nixpkgs=channel:nixos-stable # - uses: cachix/cachix-action@v8 # with: # name: zoxide # authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - run: nix-shell --run "cargo test --no-fail-fast" + - run: nix-shell --pure --run "cargo test --all-features --all-targets --color=always --no-fail-fast" test-windows: runs-on: windows-latest steps: @@ -32,4 +32,4 @@ jobs: - uses: actions-rs/cargo@v1 with: command: test - args: --all-features --no-fail-fast + args: --all-features --all-targets --color=always --no-fail-fast diff --git a/.github/workflows/cargo-udeps.yml b/.github/workflows/cargo-udeps.yml index 9888bc9..9242ec3 100644 --- a/.github/workflows/cargo-udeps.yml +++ b/.github/workflows/cargo-udeps.yml @@ -22,4 +22,4 @@ jobs: crate: cargo-udeps version: latest use-tool-cache: true - - run: cargo udeps --all-features --all-targets + - run: cargo udeps --all-features --all-targets --color=always diff --git a/src/shell.rs b/src/shell.rs index 0cb9baf..2b73b58 100644 --- a/src/shell.rs +++ b/src/shell.rs @@ -104,7 +104,7 @@ mod tests { let opts = dbg!(&opts()[i]); let source = Bash(opts).render().unwrap(); Command::new("bash") - .args(&["-c", &source]) + .args(&["-c", &source, "--noediting", "--noprofile", "--norc"]) .assert() .success() .stdout("") @@ -145,7 +145,7 @@ mod tests { let opts = dbg!(&opts()[i]); let source = Fish(opts).render().unwrap(); Command::new("fish") - .args(&["-c", &source]) + .args(&["--command", &source, "--private"]) .assert() .success() .stdout("") @@ -159,7 +159,7 @@ mod tests { let opts = dbg!(&opts()[i]); let source = Posix(opts).render().unwrap(); let assert = Command::new("bash") - .args(&["--posix", "-c", &source]) + .args(&["--posix", "-c", &source, "--noediting", "--noprofile", "--norc"]) .assert() .success() .stderr(""); @@ -218,7 +218,7 @@ mod tests { let opts = dbg!(&opts()[i]); let source = PowerShell(opts).render().unwrap(); Command::new("pwsh") - .args(&["-c", &source]) + .args(&["-Command", &source, "-NoLogo", "-NonInteractive", "-NoProfile"]) .assert() .success() .stdout("") @@ -269,7 +269,7 @@ mod tests { let opts = dbg!(&opts()[i]); let source = Xonsh(opts).render().unwrap(); Command::new("xonsh") - .args(&["-c", &source]) + .args(&["-c", &source, "--no-rc"]) .assert() .success() .stdout("") @@ -281,7 +281,7 @@ mod tests { let opts = dbg!(&opts()[i]); let source = Zsh(opts).render().unwrap(); Command::new("zsh") - .args(&["-c", &source]) + .args(&["-c", &source, "--no-rcs"]) .assert() .success() .stdout("")