Created
May 5, 2025 18:24
-
-
Save RafaelGSS/7a6ca2bf875786cc9cb7e5c1c9e9ea30 to your computer and use it in GitHub Desktop.
How you can test Node.js release candidates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
workflow_dispatch: | |
inputs: | |
nodejs-version: | |
description: 'Node.js version to use (e.g., 24.0.0-rc.1)' | |
required: true | |
type: string | |
permissions: | |
contents: read | |
jobs: | |
# Useful for testing Release Candidates of Node.js | |
test-unit-custom: | |
if: github.event_name == 'workflow_dispatch' | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Use Custom Node.js Version | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ github.event.inputs.nodejs-version }} | |
cache: 'npm' | |
cache-dependency-path: package.json | |
check-latest: true | |
- name: Install | |
run: | | |
npm install --ignore-scripts | |
- name: Run tests | |
run: | | |
npm run unit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment