-
Notifications
You must be signed in to change notification settings - Fork 9
51 lines (47 loc) · 1.34 KB
/
module-test2.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Nu Module Test 2
on:
push:
branches:
- main
- develop
- release/*
paths-ignore:
- '**.md'
defaults:
run:
shell: nu {0}
jobs:
test-latest:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-22.04, macos-latest]
ver: [0.93.0, 0.92.2, 0.91.0, 0.90.1, 0.87.1, 0.86, 0.85]
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: false
version: ${{matrix.ver}}
- name: Show Nu Version and NU_LIB_DIRS
run: |
print $'Nu version info:(char nl)'; print (version)
print 'NU_LIB_DIRS:'
$env.NU_LIB_DIRS | print
- name: Prepare Nu Modules
run: |
# Linux: '/home/runner/.config/nushell'
# Windows: 'C:/Users/runneradmin/AppData/Roaming/nushell'
# Darwin: '/Users/runner/Library/Application Support/nushell'
let LIB_DIR = [$nu.default-config-dir 'scripts'] | path join
if not ($LIB_DIR | path exists) { mkdir $LIB_DIR }
cp -r nu/* $LIB_DIR
print $'Contents of ($LIB_DIR):'
ls $LIB_DIR
- name: Use Your Nu Modules
run: |
use module.nu *
print (get-env 'ABC-XYZ' 'DEFAULT-ABC-XYZ')