Skip to content

Commit

Permalink
Revert "add --nupm to test in toolkit"
Browse files Browse the repository at this point in the history
This reverts commit cb4f0e3.
  • Loading branch information
amtoine committed Dec 15, 2023
1 parent a7ded93 commit 3057ac5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/nupm-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ jobs:
run: |
"$env.NU_LIB_DIRS = [ (${{ steps.nu-setup.outputs.nupm_path }} | path dirname) ]"
| save --force /tmp/env.nu
let res = nu --commands --env-config /tmp/env.nu "
nu --commands --env-config /tmp/env.nu "
use toolkit.nu
toolkit test --verbose
"
print $res
3 changes: 1 addition & 2 deletions toolkit.nu
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use std repeat
export def "test" [
pattern?: string = "" # the pattern a test name should match to run
--verbose # show the output of each tests
--nupm: path = "nupm" # the Nupm module to use
]: nothing -> nothing {
let command = if $verbose {
$"nupm test ($pattern) --show-stdout"
Expand All @@ -16,7 +15,7 @@ export def "test" [
}

# NOTE: this is for the CI to pass without installing Nupm
^$nu.current-exe --env-config $nu.env-path --commands $"use ($nupm); ($command)"
^$nu.current-exe --env-config $nu.env-path --commands $"use nupm; ($command)"
}

# install `nu-git-manager` with Nupm
Expand Down

0 comments on commit 3057ac5

Please sign in to comment.