Skip to content

Commit

Permalink
use the toolkit in the CI (#135)
Browse files Browse the repository at this point in the history
this PR uses the `toolkit` module and its `test` command to run the
tests in the CI, such that we have only one point to change to modify
how the tests run.
  • Loading branch information
amtoine authored Dec 15, 2023
1 parent 9118490 commit 6d2d176
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/nupm-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
"

0 comments on commit 6d2d176

Please sign in to comment.