mirror of
https://github.com/ajeetdsouza/zoxide.git
synced 2026-09-27 17:55:50 -04:00
Run shell tests in a clean env
This commit is contained in:
@@ -19,4 +19,5 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/audit-check@v1
|
||||
with:
|
||||
args: --color=always
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -18,4 +18,4 @@ jobs:
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: -- --check
|
||||
args: -- --check --color=always
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user