Skip to content

Commit 83ecb68

Browse files
Add nu-check job
1 parent 9686f85 commit 83ecb68

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/nushell-tests.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@ on:
44
workflow_call:
55
inputs:
66
nushell_version:
7-
required: true
87
type: string
98
default: "*"
109
nuunit_version:
11-
required: true
1210
type: string
1311
default: "master"
1412

1513
jobs:
16-
basic-usage:
14+
unit-tests:
1715
runs-on: ubuntu-latest
1816
steps:
1917
- uses: actions/[email protected]
@@ -23,3 +21,13 @@ jobs:
2321
- run: |
2422
nu -c 'http get https://raw.githubusercontent.com/NonlinearFruit/nuUnit/${{ inputs.nuunit_version }}/nuunit.nu | save -f nuunit.nu'
2523
nu nuunit.nu
24+
25+
nu-check:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/[email protected]
29+
- uses: hustcer/setup-nu@main
30+
with:
31+
version: ${{ inputs.nushell_version }}
32+
- run: |
33+
nu -c 'use std assert; ls **/*.nu | get name | each { open $in | nu-check | assert $in }'

0 commit comments

Comments
 (0)