Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Sep 10, 2023
1 parent 2b65ec0 commit 7304b46
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions .github/workflows/module-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,29 +33,9 @@ jobs:
env:
ACTIONS_STEP_DEBUG: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Show NU_LIB_DIRS
- name: Use Your Nu Modules
run: |
print 'Current env config:'
cat $nu.env-path
print (version)
print 'Current NU_LIB_DIRS: '
print $env.NU_LIB_DIRS
- name: Cp Your Modules to NU_LIB_DIRS
run: |
let LIB_DIR = ($nu.config-path | path dirname | path join 'scripts')
mkdir $LIB_DIR
$env.NU_LIB_DIRS = ($env.NU_LIB_DIRS | split row (char esep) | prepend $LIB_DIR)
cp ./nu/common.nu $LIB_DIR
print 'Available Nu Modules:'
# FIXME: Show available modules
print $env.NU_LIB_DIRS
print (ls ($env.NU_LIB_DIRS | get 0))
$env.NU_LIB_DIRS = ($env.NU_LIB_DIRS | split row (char esep) | prepend $env.GITHUB_WORKSPACE)
- name: Use Your Nu Modules In the Following Steps
run: |
use common.nu [get-env]
print $env.PWD
print (get-env 'ABC-XYZ' 'DEFAULT-ABC-XYZ')
nu -n -c "use common.nu *; print (get-env 'ABC-XYZ' 'DEFAULT-ABC-XYZ')"

0 comments on commit 7304b46

Please sign in to comment.