File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 13
13
paths-ignore :
14
14
- ' docs/**'
15
15
- ' *.md'
16
+ workflow_dispatch :
17
+ inputs :
18
+ nodejs-version :
19
+ description : ' Node.js version to use (e.g., 24.0.0-rc.1)'
20
+ required : true
21
+ type : string
16
22
17
23
# This allows a subsequently queued workflow run to interrupt previous runs
18
24
concurrency :
@@ -139,6 +145,34 @@ jobs:
139
145
run : |
140
146
npm run unit
141
147
148
+ # Useful for testing Release Candidates of Node.js
149
+ test-unit-custom :
150
+ if : github.event_name == 'workflow_dispatch'
151
+ runs-on : ubuntu-latest
152
+ permissions :
153
+ contents : read
154
+
155
+ steps :
156
+ - uses : actions/checkout@v4
157
+ with :
158
+ persist-credentials : false
159
+
160
+ - name : Use Custom Node.js Version
161
+ uses : actions/setup-node@v4
162
+ with :
163
+ node-version : ${{ github.event.inputs.nodejs-version }}
164
+ cache : ' npm'
165
+ cache-dependency-path : package.json
166
+ check-latest : true
167
+
168
+ - name : Install
169
+ run : |
170
+ npm install --ignore-scripts
171
+
172
+ - name : Run tests
173
+ run : |
174
+ npm run unit
175
+
142
176
test-typescript :
143
177
needs :
144
178
- lint
You can’t perform that action at this time.
0 commit comments