Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Jan 22, 2024
1 parent 7430db7 commit b87047f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/nupm-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,12 @@ jobs:
use toolkit.nu
toolkit test --verbose
"
# const NUSHELL_VERSION = "0.89.0"
# const NUSHELL_ARCH = "x86_64-unknown-linux-gnu"
#
# let nushell_build = $"nu-($NUSHELL_VERSION)-($NUSHELL_ARCH)"
# http get https://github.com/nushell/nushell/releases/download/($NUSHELL_VERSION)/($nushell_build).tar.gz
# | save -f -p /tmp/nu.tar.gz
# tar -xvf /tmp/nu.tar.gz --directory /tmp
# ^$nu.current-exe --commands $"register /tmp/($nushell_build)/nu_plugin_gstat"
15 changes: 15 additions & 0 deletions pkgs/nu-git-manager-sugar/tests/extra.nu
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
use ../../../tests/common/setup.nu [run-with-env]

use ../../../pkgs/nu-git-manager/nu-git-manager/ ["gm clone", "gm update-cache"]
use ../../../pkgs/nu-git-manager-sugar/nu-git-manager-sugar/ extra ["gm report"]

export def report [] {
run-with-env {
use std assert

gm update-cache
gm clone https://github.com/amtoine/nu-git-manager --depth 1

assert equal (gm report) []
}
}
1 change: 1 addition & 0 deletions pkgs/nu-git-manager-sugar/tests/mod.nu
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use ../../../tests/common/import.nu ["assert imports"]
use ../../../tests/common/setup.nu [get-random-test-dir]

export module git.nu
export module extra.nu

const MODULE = "nu-git-manager-sugar"

Expand Down

0 comments on commit b87047f

Please sign in to comment.