Skip to content

Commit 197246d

Browse files
authored
feat: On-demand unit testing (#49)
1 parent c7a30f4 commit 197246d

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: On-Demand Unit Testing
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description: 'Branch or tag to test'
8+
required: true
9+
default: 'main'
10+
11+
jobs:
12+
test:
13+
name: On-Demand Unit Testing on ${{ inputs.ref }}
14+
uses: WJSoftware/cicd/.github/workflows/[email protected]
15+
secrets: inherit
16+
with:
17+
pwsh: false
18+
build: false
19+
ref: ${{ inputs.ref }}

.github/workflows/test-pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ on:
88
jobs:
99
test:
1010
name: Unit Testing
11-
uses: WJSoftware/cicd/.github/workflows/npm-test.yml@v0.1.0
11+
uses: WJSoftware/cicd/.github/workflows/npm-test.yml@v0.2
1212
secrets: inherit
1313
with:
1414
pwsh: false
1515
build: false
16+
ref: ${{ github.head_ref }}

0 commit comments

Comments
 (0)