diff --git a/.github/workflows/dispatch-test-pr.yml b/.github/workflows/dispatch-test-pr.yml new file mode 100644 index 0000000..3bea8b0 --- /dev/null +++ b/.github/workflows/dispatch-test-pr.yml @@ -0,0 +1,19 @@ +name: On-Demand Unit Testing + +on: + workflow_dispatch: + inputs: + ref: + description: 'Branch or tag to test' + required: true + default: 'main' + +jobs: + test: + name: On-Demand Unit Testing on ${{ inputs.ref }} + uses: WJSoftware/cicd/.github/workflows/npm-test.yml@v0.2 + secrets: inherit + with: + pwsh: false + build: false + ref: ${{ inputs.ref }} diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml index 8b95d25..bc3c30c 100644 --- a/.github/workflows/test-pr.yml +++ b/.github/workflows/test-pr.yml @@ -8,8 +8,9 @@ on: jobs: test: name: Unit Testing - uses: WJSoftware/cicd/.github/workflows/npm-test.yml@v0.1.0 + uses: WJSoftware/cicd/.github/workflows/npm-test.yml@v0.2 secrets: inherit with: pwsh: false build: false + ref: ${{ github.head_ref }}