Skip to content

Commit 2dd7c55

Browse files
Reuseable nuUnit CI
1 parent 4554b51 commit 2dd7c55

File tree

2 files changed

+29
-9
lines changed

2 files changed

+29
-9
lines changed

.github/workflows/nushell-tests.yml

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