Run shell tests in a clean env

This commit is contained in:
Ajeet D'Souza
2020-12-10 12:00:10 +05:30
parent 753d95e5a4
commit 14b150c1f7
6 changed files with 13 additions and 12 deletions
+1
View File
@@ -19,4 +19,5 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/audit-check@v1
with:
args: --color=always
token: ${{ secrets.GITHUB_TOKEN }}
+1 -1
View File
@@ -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 }}
+1 -1
View File
@@ -18,4 +18,4 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
args: -- --check --color=always
+3 -3
View File
@@ -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
+1 -1
View File
@@ -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