Skip to content

Commit

Permalink
Reuseable nuUnit CI
Browse files Browse the repository at this point in the history
  • Loading branch information
NonlinearFruit committed Jul 13, 2024
1 parent 4554b51 commit 2dd7c55
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 9 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/nushell-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Check nushell scripts

on:
workflow_call:
nushell_version:
config-path:
required: true
type: string
nuunit_version:
config-path:
required: true
type: string

jobs:
basic-usage:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: hustcer/setup-nu@main
with:
version: ${{ inputs.nushell_version }}
- run: |
nu -c 'http get https://raw.githubusercontent.com/NonlinearFruit/nuUnit/${{ inputs.nuunit_version }}/nuunit.nu | save -f nuunit.nu'
nu nuunit.nu
14 changes: 5 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@ name: test
on: push

jobs:
basic-usage:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: hustcer/setup-nu@main
with:
version: "*"
- run: |
nu nuunit.nu
nushell-tests:
uses: NonlinearFruit/nuUnit/.github/workflows/nushell-tests.yml@master
with:
nushell_version: "*"
nuunit_version: "master"

0 comments on commit 2dd7c55

Please sign in to comment.