Skip to content

Commit

Permalink
Conditionally install cargo-nextest
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Aug 9, 2024
1 parent 88514bf commit 0332626
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,13 @@ jobs:

- name: Run nautilus_core cargo tests (Linux)
run: |
cargo install cargo-nextest --force
if ! command -v cargo-nextest &> /dev/null
then
echo "cargo-nextest not found, installing..."
cargo install cargo-nextest
else
echo "cargo-nextest is already installed"
fi
make cargo-test
- name: Run tests (Linux)
Expand Down Expand Up @@ -360,7 +366,13 @@ jobs:
- name: Run nautilus_core cargo tests (macOS)
run: |
cargo install cargo-nextest --force
if ! command -v cargo-nextest &> /dev/null
then
echo "cargo-nextest not found, installing..."
cargo install cargo-nextest
else
echo "cargo-nextest is already installed"
fi
make cargo-test
- name: Run tests (macOS)
Expand Down

0 comments on commit 0332626

Please sign in to comment.