From ca193c083db8d4f17979250a78390bf280b7bcde Mon Sep 17 00:00:00 2001 From: amtoine Date: Wed, 15 Nov 2023 19:39:09 +0100 Subject: [PATCH] try to use the `nupm-path` from setup_nupm --- .github/workflows/nupm-tests.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nupm-tests.yml b/.github/workflows/nupm-tests.yml index 7a633052..7a87ebe2 100644 --- a/.github/workflows/nupm-tests.yml +++ b/.github/workflows/nupm-tests.yml @@ -44,17 +44,23 @@ jobs: - name: Setup Nushell and Nupm (latest) uses: ./.github/actions/setup_nupm if: github.ref != 'refs/heads/nightly' + id: nupm-setup with: nu_version: ${{inputs.nu_version}} - name: Setup Nushell and Nupm (nightly) uses: ./.github/actions/setup_nupm if: github.ref == 'refs/heads/nightly' + id: nupm-setup-nightly with: nu_version: "nightly" - - name: Run the tests + - name: Run the tests (latest) run: | - # FIXME: is there a way to not rely on hardcoded paths here? - use ~/.local/share/nupm/modules/nupm + use "${{ steps.nupm-setup.outputs.nupm-path }}/modules/nupm" + nupm test --show-stdout + + - name: Run the tests (nightly) + run: | + use "${{ steps.nupm-setup-nightly.outputs.nupm-path }}/modules/nupm" nupm test --show-stdout