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 9686f85
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 9 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/nushell-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Check nushell scripts

on:
workflow_call:
inputs:
nushell_version:
required: true
type: string
default: "*"
nuunit_version:
required: true
type: string
default: "master"

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 9686f85

Please sign in to comment.