From 83ecb683b0665e058dc25aa29819fe86fd7737bc Mon Sep 17 00:00:00 2001 From: NonlinearFruit <1123benji5813@gmail.com> Date: Sat, 13 Jul 2024 07:11:46 -0600 Subject: [PATCH] Add nu-check job --- .github/workflows/nushell-tests.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nushell-tests.yml b/.github/workflows/nushell-tests.yml index 654661f..95539a5 100644 --- a/.github/workflows/nushell-tests.yml +++ b/.github/workflows/nushell-tests.yml @@ -4,16 +4,14 @@ on: workflow_call: inputs: nushell_version: - required: true type: string default: "*" nuunit_version: - required: true type: string default: "master" jobs: - basic-usage: + unit-tests: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.0.0 @@ -23,3 +21,13 @@ jobs: - run: | nu -c 'http get https://raw.githubusercontent.com/NonlinearFruit/nuUnit/${{ inputs.nuunit_version }}/nuunit.nu | save -f nuunit.nu' nu nuunit.nu + + nu-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4.0.0 + - uses: hustcer/setup-nu@main + with: + version: ${{ inputs.nushell_version }} + - run: | + nu -c 'use std assert; ls **/*.nu | get name | each { open $in | nu-check | assert $in }'