Skip to content

fix typos

fix typos #465

Workflow file for this run

name: Nu Module Test
on:
push:
branches:
- main
- develop
paths-ignore:
- '**.md'
defaults:
run:
shell: nu {0}
jobs:
test-latest:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-latest, windows-latest]
ver: [0.101.0, 0.98.0, 0.97.1, 0.96.1, 0.93.0, 0.92.2, 0.91.0, 0.90.1]
runs-on: ${{ matrix.os }}
name: test (${{matrix.os}}, nu@${{matrix.ver}})
steps:
- uses: actions/checkout@v4
- name: Setup nu@latest
uses: hustcer/setup-nu@develop
with:
enable-plugins: true
version: ${{matrix.ver}}
env:
ACTIONS_STEP_DEBUG: true
- name: Show Nu Version
run: print $'Nu version info:(char nl)'; print (version)
- name: Use Your Nu Modules by NU_LIB_DIRS Constant
run: |
const NU_LIB_DIRS = [ ${{ github.workspace }}/nu ]
use module.nu *
print 'Use module by NU_LIB_DIRS Constant'
print (get-env 'ABC-XYZ' 'DEFAULT-FROM-NU-LIB-DIRS-CONSTANT')
- name: Use Your Nu Modules
run: |
nu -c "use nu/module.nu *; print (get-env 'ABC-XYZ' 'DEFAULT-ABC-XYZ')"
- name: Use Your Nu Modules by Absolute Path
run: |
use ${{ github.workspace }}/nu/module.nu *
print 'Use module from: ${{ github.workspace }}/nu/module.nu'
print (get-env 'ABC-XYZ' 'DEFAULT-ABC-XYZ-ABSOLUTE-PATH')