diff --git a/.github/workflows/nupm-tests.yml b/.github/workflows/nupm-tests.yml index b0f8ae4..58b7dc4 100644 --- a/.github/workflows/nupm-tests.yml +++ b/.github/workflows/nupm-tests.yml @@ -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" diff --git a/pkgs/nu-git-manager-sugar/tests/extra.nu b/pkgs/nu-git-manager-sugar/tests/extra.nu new file mode 100644 index 0000000..62c7655 --- /dev/null +++ b/pkgs/nu-git-manager-sugar/tests/extra.nu @@ -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) [] + } +} diff --git a/pkgs/nu-git-manager-sugar/tests/mod.nu b/pkgs/nu-git-manager-sugar/tests/mod.nu index e44c0ca..5d0a038 100644 --- a/pkgs/nu-git-manager-sugar/tests/mod.nu +++ b/pkgs/nu-git-manager-sugar/tests/mod.nu @@ -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"