Skip to content

Commit c47fb9b

Browse files
authored
chore(CI): Allow on-demand testing selecting the Node.js version (#50)
1 parent 197246d commit c47fb9b

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/dispatch-test-pr.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,23 @@ name: On-Demand Unit Testing
33
on:
44
workflow_dispatch:
55
inputs:
6-
ref:
7-
description: 'Branch or tag to test'
6+
node-version:
7+
description: Node.js version to use.
88
required: true
9-
default: 'main'
9+
type: choice
10+
options:
11+
- '18'
12+
- '20'
13+
- '22'
14+
- '24'
15+
default: '24'
1016

1117
jobs:
1218
test:
13-
name: On-Demand Unit Testing on ${{ inputs.ref }}
14-
uses: WJSoftware/cicd/.github/workflows/npm-test.yml@v0.2
19+
name: On-Demand Unit Testing on Node.js v${{ inputs.node-version }}
20+
uses: WJSoftware/cicd/.github/workflows/npm-test.yml@v0.1.0
1521
secrets: inherit
1622
with:
1723
pwsh: false
1824
build: false
19-
ref: ${{ inputs.ref }}
25+
node-version: ${{ inputs.node-version }}

0 commit comments

Comments
 (0)