Skip to content

Commit

Permalink
try to use the nupm-path from setup_nupm
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Nov 15, 2023
1 parent 0ec592c commit ca193c0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/nupm-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ca193c0

Please sign in to comment.