From 165c4b82bdb0be89d51f27c8b06799228fc000cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ramirez=20Vargas=2C=20Jos=C3=A9=20Pablo?= Date: Fri, 20 Jun 2025 22:29:43 -0600 Subject: [PATCH] chore(CI): Allow on-demand testing selecting the Node.js version --- .github/workflows/dispatch-test-pr.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dispatch-test-pr.yml b/.github/workflows/dispatch-test-pr.yml index 3bea8b0..9f719a7 100644 --- a/.github/workflows/dispatch-test-pr.yml +++ b/.github/workflows/dispatch-test-pr.yml @@ -3,17 +3,23 @@ name: On-Demand Unit Testing on: workflow_dispatch: inputs: - ref: - description: 'Branch or tag to test' + node-version: + description: Node.js version to use. required: true - default: 'main' + type: choice + options: + - '18' + - '20' + - '22' + - '24' + default: '24' jobs: test: - name: On-Demand Unit Testing on ${{ inputs.ref }} - uses: WJSoftware/cicd/.github/workflows/npm-test.yml@v0.2 + name: On-Demand Unit Testing on Node.js v${{ inputs.node-version }} + uses: WJSoftware/cicd/.github/workflows/npm-test.yml@v0.1.0 secrets: inherit with: pwsh: false build: false - ref: ${{ inputs.ref }} + node-version: ${{ inputs.node-version }}