Skip to content

Commit

Permalink
Add nu-check job
Browse files Browse the repository at this point in the history
  • Loading branch information
NonlinearFruit committed Jul 13, 2024
1 parent 9686f85 commit 83ecb68
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/nushell-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand All @@ -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/[email protected]
- 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 }'

0 comments on commit 83ecb68

Please sign in to comment.