From 6e5207e98e64c35e2a5e0ac50306792505ca22d4 Mon Sep 17 00:00:00 2001 From: amtoine Date: Tue, 12 Dec 2023 15:37:35 +0100 Subject: [PATCH] use the toolkit in the CI --- .github/workflows/nupm-tests.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nupm-tests.yml b/.github/workflows/nupm-tests.yml index f2f6fab..fdcfa56 100644 --- a/.github/workflows/nupm-tests.yml +++ b/.github/workflows/nupm-tests.yml @@ -68,5 +68,11 @@ jobs: - name: Run the tests run: | - use ${{ steps.nu-setup.outputs.nupm_path }} - nupm test --show-stdout + # NOTE: required for `use nupm` to work inside `toolkit test` + "$env.NU_LIB_DIRS = [ (${{ steps.nu-setup.outputs.nupm_path }} | path dirname) ]" + | save --force /tmp/env.nu + # NOTE: required for `use toolkit.nu` to work + nu --env-config /tmp/env.nu --commands " + use toolkit.nu + toolkit test --verbose + "