We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test-command
1 parent 4267f00 commit 2c8cd74Copy full SHA for 2c8cd74
.github/workflows/node-test.yaml
@@ -23,6 +23,12 @@ on:
23
required: false
24
type: string
25
26
+ test-command:
27
+ description: "Command to run instead of `npm test` (e.g. for coverage)."
28
+ default: npm test
29
+ required: false
30
+ type: string
31
+
32
jobs:
33
34
prepare-node-matrix:
@@ -99,7 +105,7 @@ jobs:
99
105
100
106
101
107
- name: Run tests
102
- run: npm test
108
+ run: ${{ inputs.test-command }}
103
109
env:
104
110
MATRIX_NODE_VERSION: ${{ matrix.node-version }}
111
NODE_LTS_LATEST: ${{ needs.prepare-node-matrix.outputs.lts-latest }}
0 commit comments