Skip to content

Commit 0fe9b44

Browse files
Reuseable nuUnit CI
1 parent 4554b51 commit 0fe9b44

File tree

2 files changed

+28
-9
lines changed

2 files changed

+28
-9
lines changed

.github/workflows/nushell-tests.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Check nushell scripts
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
nushell_version:
7+
required: true
8+
type: string
9+
nuunit_version:
10+
required: true
11+
type: string
12+
13+
jobs:
14+
basic-usage:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/[email protected]
18+
- uses: hustcer/setup-nu@main
19+
with:
20+
version: ${{ inputs.nushell_version }}
21+
- run: |
22+
nu -c 'http get https://raw.githubusercontent.com/NonlinearFruit/nuUnit/${{ inputs.nuunit_version }}/nuunit.nu | save -f nuunit.nu'
23+
nu nuunit.nu

.github/workflows/test.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@ name: test
33
on: push
44

55
jobs:
6-
basic-usage:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: actions/[email protected]
10-
- uses: hustcer/setup-nu@main
11-
with:
12-
version: "*"
13-
- run: |
14-
nu nuunit.nu
6+
nushell-tests:
7+
uses: NonlinearFruit/nuUnit/.github/workflows/nushell-tests.yml@master
8+
with:
9+
nushell_version: "*"
10+
nuunit_version: "master"

0 commit comments

Comments
 (0)