Skip to content

Commit 8537e82

Browse files
authored
ci: add support to test release candidates (#6103)
1 parent 0c18914 commit 8537e82

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ on:
1313
paths-ignore:
1414
- 'docs/**'
1515
- '*.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
1622

1723
# This allows a subsequently queued workflow run to interrupt previous runs
1824
concurrency:
@@ -139,6 +145,34 @@ jobs:
139145
run: |
140146
npm run unit
141147
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+
142176
test-typescript:
143177
needs:
144178
- lint

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy