versions / arch (push) Waiting to run
e2e-cache / Test pnpm (Node 24, windows-latest) (push) Waiting to run
e2e-cache / Test yarn 1 (Node 20, macos-latest) (push) Waiting to run
e2e-cache / Test yarn 1 (Node 20, macos-latest-large) (push) Waiting to run
e2e-cache / Test yarn 1 (Node 22, macos-latest) (push) Waiting to run
e2e-cache / Test yarn 1 (Node 22, windows-latest) (push) Waiting to run
e2e-cache / Test yarn 1 (Node 24, macos-latest) (push) Waiting to run
e2e-cache / Test yarn 1 (Node 24, macos-latest-large) (push) Waiting to run
e2e-cache / Test yarn 3 (Node 20, macos-latest) (push) Waiting to run
e2e-cache / Test yarn 3 (Node 20, macos-latest-large) (push) Waiting to run
e2e-cache / Test yarn 3 (Node 22, macos-latest) (push) Waiting to run
e2e-cache / Test yarn 3 (Node 22, macos-latest-large) (push) Waiting to run
e2e-cache / Test yarn 3 (Node 24, macos-latest-large) (push) Waiting to run
e2e-cache / Test yarn 3 (Node 24, windows-latest) (push) Waiting to run
e2e-cache / Test npm (Node 20, macos-latest-large) (push) Waiting to run
e2e-cache / Test npm (Node 20, windows-latest) (push) Waiting to run
e2e-cache / Test npm (Node 20, macos-latest) (push) Waiting to run
e2e-cache / Test npm (Node 22, macos-latest) (push) Waiting to run
e2e-cache / Test npm (Node 22, macos-latest-large) (push) Waiting to run
e2e-cache / Test npm (Node 22, windows-latest) (push) Waiting to run
e2e-cache / Test npm (Node 24, macos-latest) (push) Waiting to run
e2e-cache / Test npm (Node 24, macos-latest-large) (push) Waiting to run
e2e-cache / Test npm (Node 24, windows-latest) (push) Waiting to run
e2e-cache / Test pnpm (Node 20, macos-latest) (push) Waiting to run
e2e-cache / Test pnpm (Node 20, macos-latest-large) (push) Waiting to run
e2e-cache / Test pnpm (Node 20, windows-latest) (push) Waiting to run
e2e-cache / Test pnpm (Node 22, macos-latest) (push) Waiting to run
e2e-cache / Test pnpm (Node 22, macos-latest-large) (push) Waiting to run
e2e-cache / Test pnpm (Node 22, windows-latest) (push) Waiting to run
e2e-cache / Test pnpm (Node 24, macos-latest) (push) Waiting to run
e2e-cache / Test pnpm (Node 24, macos-latest-large) (push) Waiting to run
e2e-cache / Test yarn 1 (Node 20, windows-latest) (push) Waiting to run
e2e-cache / Test yarn 1 (Node 22, macos-latest-large) (push) Waiting to run
e2e-cache / Test yarn 1 (Node 24, windows-latest) (push) Waiting to run
e2e-cache / Test yarn 3 (Node 20, windows-latest) (push) Waiting to run
e2e-cache / Test yarn 3 (Node 22, windows-latest) (push) Waiting to run
e2e-cache / Test yarn 3 (Node 24, macos-latest) (push) Waiting to run
e2e-cache / Test auto cache with top-level packageManager (20, macos-latest) (push) Waiting to run
e2e-cache / Test auto cache with top-level packageManager (20, macos-latest-large) (push) Waiting to run
e2e-cache / Test auto cache with top-level packageManager (20, windows-latest) (push) Waiting to run
e2e-cache / Test auto cache with top-level packageManager (22, macos-latest) (push) Waiting to run
e2e-cache / Test auto cache with top-level packageManager (22, macos-latest-large) (push) Waiting to run
e2e-cache / Test auto cache with top-level packageManager (22, windows-latest) (push) Waiting to run
e2e-cache / Test auto cache with top-level packageManager (24, macos-latest) (push) Waiting to run
e2e-cache / Test auto cache with top-level packageManager (24, macos-latest-large) (push) Waiting to run
e2e-cache / Test auto cache with top-level packageManager (24, windows-latest) (push) Waiting to run
e2e-cache / Test auto cache with devEngines.packageManager (20, macos-latest) (push) Waiting to run
e2e-cache / Test auto cache with devEngines.packageManager (20, macos-latest-large) (push) Waiting to run
e2e-cache / Test auto cache with devEngines.packageManager (20, windows-latest) (push) Waiting to run
e2e-cache / Test auto cache with devEngines.packageManager (22, macos-latest) (push) Waiting to run
e2e-cache / Test auto cache with devEngines.packageManager (22, macos-latest-large) (push) Waiting to run
e2e-cache / Test auto cache with devEngines.packageManager (22, windows-latest) (push) Waiting to run
e2e-cache / Test auto cache with devEngines.packageManager (24, macos-latest) (push) Waiting to run
e2e-cache / Test auto cache with devEngines.packageManager (24, macos-latest-large) (push) Waiting to run
e2e-cache / Test auto cache with devEngines.packageManager (24, windows-latest) (push) Waiting to run
versions / old-versions (windows-latest) (push) Waiting to run
versions / local-cache (20, macos-latest) (push) Waiting to run
versions / local-cache (20, macos-latest-large) (push) Waiting to run
versions / local-cache (20, windows-latest) (push) Waiting to run
versions / local-cache (22, macos-latest) (push) Waiting to run
versions / local-cache (22, windows-latest) (push) Waiting to run
versions / local-cache (24, macos-latest) (push) Waiting to run
versions / local-cache (24, macos-latest-large) (push) Waiting to run
versions / lts-syntax (lts/*, windows-latest) (push) Waiting to run
versions / v8-canary-syntax (20.0.0-v8-canary, windows-latest) (push) Waiting to run
versions / lts-syntax (lts/-1, windows-latest) (push) Waiting to run
versions / lts-syntax (lts/dubnium, macos-latest-large) (push) Waiting to run
versions / lts-syntax (lts/dubnium, windows-latest) (push) Waiting to run
versions / lts-syntax (lts/erbium, macos-latest-large) (push) Waiting to run
versions / lts-syntax (lts/erbium, windows-latest) (push) Waiting to run
versions / lts-syntax (lts/fermium, macos-latest-large) (push) Waiting to run
versions / lts-syntax (lts/fermium, windows-latest) (push) Waiting to run
versions / v8-canary-syntax (20-v8-canary, macos-latest) (push) Waiting to run
versions / v8-canary-syntax (20-v8-canary, macos-latest-large) (push) Waiting to run
versions / local-cache (22, macos-latest-large) (push) Waiting to run
versions / local-cache (24, windows-latest) (push) Waiting to run
versions / lts-syntax (lts/*, macos-latest-large) (push) Waiting to run
versions / lts-syntax (lts/-1, macos-latest-large) (push) Waiting to run
versions / v8-canary-syntax (20.0.0-v8-canary, macos-latest-large) (push) Waiting to run
versions / manifest (22.0.0, macos-latest) (push) Waiting to run
versions / v8-canary-syntax (20.0.0-v8-canary20221101e50e45c9f8, macos-latest) (push) Waiting to run
versions / v8-canary-syntax (20.0.0-v8-canary20221101e50e45c9f8, macos-latest-large) (push) Waiting to run
versions / v8-canary-syntax (20.0.0-v8-canary20221101e50e45c9f8, windows-latest) (push) Waiting to run
versions / nightly-syntax (20-nightly, macos-latest) (push) Waiting to run
versions / nightly-syntax (20-nightly, macos-latest-large) (push) Waiting to run
versions / nightly-syntax (20-nightly, windows-latest) (push) Waiting to run
versions / nightly-syntax (24.0.0-nightly, macos-latest) (push) Waiting to run
versions / nightly-syntax (24.0.0-nightly, macos-latest-large) (push) Waiting to run
versions / nightly-syntax (24.0.0-nightly, windows-latest) (push) Waiting to run
versions / nightly-syntax (25-nightly, windows-latest) (push) Waiting to run
versions / rc-syntax (20.0.0-rc.1, macos-latest) (push) Waiting to run
versions / rc-syntax (20.0.0-rc.1, macos-latest-large) (push) Waiting to run
versions / rc-syntax (20.0.0-rc.1, windows-latest) (push) Waiting to run
versions / v8-canary-syntax (20-v8-canary, windows-latest) (push) Waiting to run
versions / v8-canary-syntax (20.0.0-v8-canary, macos-latest) (push) Waiting to run
versions / manifest (22.0.0, macos-latest-large) (push) Waiting to run
versions / nightly-syntax (25-nightly, macos-latest) (push) Waiting to run
versions / nightly-syntax (25-nightly, macos-latest-large) (push) Waiting to run
versions / rc-syntax (22.14.0-rc.1, macos-latest) (push) Waiting to run
versions / rc-syntax (22.14.0-rc.1, macos-latest-large) (push) Waiting to run
versions / rc-syntax (22.14.0-rc.1, windows-latest) (push) Waiting to run
versions / rc-syntax (24.0.0-rc.4, macos-latest) (push) Waiting to run
versions / rc-syntax (24.0.0-rc.4, macos-latest-large) (push) Waiting to run
versions / rc-syntax (24.0.0-rc.4, windows-latest) (push) Waiting to run
versions / manifest (20.10.0, macos-latest) (push) Waiting to run
versions / manifest (20.10.0, macos-latest-large) (push) Waiting to run
versions / manifest (20.10.0, windows-latest) (push) Waiting to run
versions / manifest (22.0.0, windows-latest) (push) Waiting to run
versions / manifest (24.9.0, macos-latest) (push) Waiting to run
versions / manifest (24.9.0, macos-latest-large) (push) Waiting to run
versions / manifest (24.9.0, windows-latest) (push) Waiting to run
versions / check-latest (20, macos-latest) (push) Waiting to run
versions / version-file (.nvmrc, windows-latest) (push) Waiting to run
versions / check-latest (20, macos-latest-large) (push) Waiting to run
versions / check-latest (20, windows-latest) (push) Waiting to run
versions / check-latest (22, macos-latest) (push) Waiting to run
versions / check-latest (22, macos-latest-large) (push) Waiting to run
versions / check-latest (22, windows-latest) (push) Waiting to run
versions / check-latest (24, macos-latest) (push) Waiting to run
versions / check-latest (24, macos-latest-large) (push) Waiting to run
versions / check-latest (24, windows-latest) (push) Waiting to run
versions / version-file (.nvmrc, macos-latest) (push) Waiting to run
versions / version-file (.nvmrc, macos-latest-large) (push) Waiting to run
versions / version-file (.tool-versions, macos-latest) (push) Waiting to run
versions / version-file (.tool-versions, macos-latest-large) (push) Waiting to run
versions / version-file (.tool-versions, windows-latest) (push) Waiting to run
versions / version-file (.tool-versions-node, macos-latest) (push) Waiting to run
versions / version-file (.tool-versions-node, macos-latest-large) (push) Waiting to run
versions / version-file (.tool-versions-node, windows-latest) (push) Waiting to run
versions / version-file (package.json, macos-latest) (push) Waiting to run
versions / version-file (package.json, macos-latest-large) (push) Waiting to run
versions / version-file (package.json, windows-latest) (push) Waiting to run
versions / version-file-volta (macos-latest) (push) Waiting to run
versions / version-file-volta (macos-latest-large) (push) Waiting to run
versions / version-file-volta (windows-latest) (push) Waiting to run
versions / version-file-volta-extends (macos-latest) (push) Waiting to run
versions / version-file-volta-extends (macos-latest-large) (push) Waiting to run
versions / version-file-volta-extends (windows-latest) (push) Waiting to run
versions / node-dist (17, macos-latest) (push) Waiting to run
versions / node-dist (17, macos-latest-large) (push) Waiting to run
versions / node-dist (17, windows-latest) (push) Waiting to run
versions / node-dist (19, macos-latest) (push) Waiting to run
versions / node-dist (19, macos-latest-large) (push) Waiting to run
versions / node-dist (19, windows-latest) (push) Waiting to run
versions / old-versions (macos-latest-large) (push) Waiting to run
versions / node-latest-aliases (current, macos-latest-large) (push) Waiting to run
versions / node-latest-aliases (latest, macos-latest) (push) Waiting to run
versions / node-latest-aliases (latest, macos-latest-large) (push) Waiting to run
versions / node-latest-aliases (latest, windows-latest) (push) Waiting to run
versions / node-latest-aliases (current, macos-latest) (push) Waiting to run
versions / node-latest-aliases (current, windows-latest) (push) Waiting to run
versions / node-latest-aliases (node, macos-latest) (push) Waiting to run
versions / node-latest-aliases (node, macos-latest-large) (push) Waiting to run
versions / node-latest-aliases (node, windows-latest) (push) Waiting to run
e2e-cache / Test npm (Node 20, ubuntu-latest) (push) Failing after 1s
e2e-cache / Test npm (Node 22, ubuntu-latest) (push) Failing after 1s
e2e-cache / Test npm (Node 24, ubuntu-latest) (push) Failing after 1s
e2e-cache / Test pnpm (Node 20, ubuntu-latest) (push) Failing after 1s
e2e-cache / Test pnpm (Node 24, ubuntu-latest) (push) Failing after 2s
e2e-cache / Test pnpm (Node 22, ubuntu-latest) (push) Failing after 1s
e2e-cache / Test yarn 1 (Node 20, ubuntu-latest) (push) Failing after 1s
e2e-cache / Test yarn 1 (Node 22, ubuntu-latest) (push) Failing after 1s
e2e-cache / Test yarn 1 (Node 24, ubuntu-latest) (push) Failing after 1s
e2e-cache / Test yarn 3 (Node 20, ubuntu-latest) (push) Failing after 1s
e2e-cache / Test yarn 3 (Node 24, ubuntu-latest) (push) Failing after 1s
e2e-cache / Test yarn 3 (Node 22, ubuntu-latest) (push) Failing after 1s
e2e-cache / Test yarn subprojects (20) (push) Failing after 1s
e2e-cache / Test yarn subprojects (24) (push) Failing after 1s
e2e-cache / Test yarn subprojects all locally managed (20) (push) Failing after 2s
e2e-cache / Test yarn subprojects (22) (push) Failing after 1s
e2e-cache / Test yarn subprojects all locally managed (24) (push) Failing after 1s
e2e-cache / Test yarn subprojects all locally managed (22) (push) Failing after 1s
e2e-cache / Test yarn subprojects some locally managed (20) (push) Failing after 1s
e2e-cache / Test yarn subprojects some locally managed (22) (push) Failing after 2s
e2e-cache / Test yarn subprojects managed by git (20) (push) Failing after 1s
e2e-cache / Test yarn subprojects some locally managed (24) (push) Failing after 1s
e2e-cache / Test auto cache with top-level packageManager (20, ubuntu-latest) (push) Failing after 2s
e2e-cache / Test yarn subprojects managed by git (22) (push) Failing after 1s
e2e-cache / Test yarn subprojects managed by git (24) (push) Failing after 2s
e2e-cache / Test auto cache with top-level packageManager (24, ubuntu-latest) (push) Failing after 1s
e2e-cache / Test auto cache with top-level packageManager (22, ubuntu-latest) (push) Failing after 1s
e2e-cache / Test auto cache with devEngines.packageManager (20, ubuntu-latest) (push) Failing after 1s
e2e-cache / Test auto cache with devEngines.packageManager (22, ubuntu-latest) (push) Failing after 1s
versions / local-cache (20, ubuntu-latest) (push) Failing after 1s
versions / local-cache (22, ubuntu-latest) (push) Failing after 1s
e2e-cache / Test auto cache with devEngines.packageManager (24, ubuntu-latest) (push) Failing after 1s
versions / local-cache (24, ubuntu-latest) (push) Failing after 1s
versions / lts-syntax (lts/*, ubuntu-latest) (push) Failing after 2s
versions / lts-syntax (lts/-1, ubuntu-latest) (push) Failing after 1s
versions / lts-syntax (lts/dubnium, ubuntu-latest) (push) Failing after 1s
versions / lts-syntax (lts/erbium, ubuntu-latest) (push) Failing after 1s
versions / lts-syntax (lts/fermium, ubuntu-latest) (push) Failing after 2s
versions / v8-canary-syntax (20-v8-canary, ubuntu-latest) (push) Failing after 1s
versions / v8-canary-syntax (20.0.0-v8-canary, ubuntu-latest) (push) Failing after 1s
versions / nightly-syntax (20-nightly, ubuntu-latest) (push) Failing after 1s
versions / v8-canary-syntax (20.0.0-v8-canary20221101e50e45c9f8, ubuntu-latest) (push) Failing after 1s
versions / nightly-syntax (24.0.0-nightly, ubuntu-latest) (push) Failing after 1s
versions / nightly-syntax (25-nightly, ubuntu-latest) (push) Failing after 1s
versions / rc-syntax (20.0.0-rc.1, ubuntu-latest) (push) Failing after 1s
versions / rc-syntax (24.0.0-rc.4, ubuntu-latest) (push) Failing after 2s
versions / rc-syntax (22.14.0-rc.1, ubuntu-latest) (push) Failing after 1s
versions / manifest (20.10.0, ubuntu-latest) (push) Failing after 1s
versions / manifest (22.0.0, ubuntu-latest) (push) Failing after 1s
versions / manifest (24.9.0, ubuntu-latest) (push) Failing after 1s
versions / check-latest (20, ubuntu-latest) (push) Failing after 2s
versions / check-latest (22, ubuntu-latest) (push) Failing after 1s
versions / check-latest (24, ubuntu-latest) (push) Failing after 1s
versions / version-file (.nvmrc, ubuntu-latest) (push) Failing after 1s
versions / version-file (.tool-versions, ubuntu-latest) (push) Failing after 1s
versions / version-file (package.json, ubuntu-latest) (push) Failing after 1s
versions / version-file-volta (ubuntu-latest) (push) Failing after 1s
versions / version-file (.tool-versions-node, ubuntu-latest) (push) Failing after 1s
versions / version-file-volta-extends (ubuntu-latest) (push) Failing after 1s
versions / node-dist (17, ubuntu-latest) (push) Failing after 2s
versions / node-dist (19, ubuntu-latest) (push) Failing after 1s
versions / node-latest-aliases (latest, ubuntu-latest) (push) Failing after 2s
versions / node-latest-aliases (node, ubuntu-latest) (push) Failing after 1s
versions / old-versions (ubuntu-latest) (push) Failing after 1s
versions / node-latest-aliases (current, ubuntu-latest) (push) Failing after 1s
Updated the workflow to support multiple OS and Node.js versions, and upgraded checkout action from v4 to v5.
278 lines
8.0 KiB
YAML
278 lines
8.0 KiB
YAML
name: versions
|
|
|
|
on:
|
|
pull_request:
|
|
paths-ignore:
|
|
- '**.md'
|
|
push:
|
|
branches:
|
|
- test-macos-x64-runner
|
|
- releases/*
|
|
paths-ignore:
|
|
- '**.md'
|
|
|
|
jobs:
|
|
local-cache:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
|
|
node-version: [20, 22, 24]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Setup Node
|
|
uses: ./
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Verify node and npm
|
|
run: __tests__/verify-node.sh "${{ matrix.node-version }}"
|
|
shell: bash
|
|
|
|
lts-syntax:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest-large]
|
|
node-version: [lts/dubnium, lts/erbium, lts/fermium, lts/*, lts/-1]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Setup Node
|
|
uses: ./
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
check-latest: true
|
|
- if: runner.os != 'Windows' && runner.os != 'macOS'
|
|
name: Verify node and npm
|
|
run: |
|
|
. "$NVM_DIR/nvm.sh"
|
|
[[ $(nvm version-remote "${{ matrix.node-version }}") =~ ^v([^.]+) ]]
|
|
__tests__/verify-node.sh "${BASH_REMATCH[1]}"
|
|
shell: bash
|
|
|
|
v8-canary-syntax:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
|
|
node-version:
|
|
[
|
|
'20-v8-canary',
|
|
'20.0.0-v8-canary',
|
|
'20.0.0-v8-canary20221101e50e45c9f8'
|
|
]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Setup Node
|
|
uses: ./
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Verify node and npm
|
|
run: |
|
|
canaryVersion="${{ matrix.node-version }}"
|
|
majorVersion=$(echo $canaryVersion | cut -d- -f1)
|
|
__tests__/verify-node.sh "$majorVersion"
|
|
shell: bash
|
|
|
|
nightly-syntax:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
|
|
node-version: [20-nightly, 25-nightly, 24.0.0-nightly]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Setup Node
|
|
uses: ./
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Verify node and npm
|
|
run: |
|
|
nightlyVersion="${{ matrix.node-version }}"
|
|
majorVersion=$(echo $nightlyVersion | cut -d- -f1)
|
|
__tests__/verify-node.sh "$majorVersion"
|
|
shell: bash
|
|
|
|
rc-syntax:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
|
|
node-version: [20.0.0-rc.1, 22.14.0-rc.1, 24.0.0-rc.4]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Setup Node
|
|
uses: ./
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Verify node and npm
|
|
run: |
|
|
rcVersion="${{ matrix.node-version }}"
|
|
majorVersion=$(echo $rcVersion | cut -d- -f1)
|
|
__tests__/verify-node.sh "$majorVersion"
|
|
shell: bash
|
|
|
|
manifest:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
|
|
node-version: [20.10.0, 22.0.0, 24.9.0]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Setup Node
|
|
uses: ./
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Verify node and npm
|
|
run: __tests__/verify-node.sh "${{ matrix.node-version }}"
|
|
shell: bash
|
|
|
|
check-latest:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
|
|
node-version: [20, 22, 24]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Setup Node and check latest
|
|
uses: ./
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
check-latest: true
|
|
- name: Verify node and npm
|
|
run: __tests__/verify-node.sh "${{ matrix.node-version }}"
|
|
shell: bash
|
|
|
|
version-file:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
|
|
node-version-file:
|
|
[.nvmrc, .tool-versions, .tool-versions-node, package.json]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Setup node from node version file
|
|
uses: ./
|
|
with:
|
|
node-version-file: '__tests__/data/${{ matrix.node-version-file }}'
|
|
- name: Verify node
|
|
run: __tests__/verify-node.sh 24
|
|
|
|
version-file-volta:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Setup node from node version file
|
|
uses: ./
|
|
with:
|
|
node-version-file: '__tests__/data/package-volta.json'
|
|
- name: Verify node
|
|
run: __tests__/verify-node.sh 24
|
|
|
|
version-file-volta-extends:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Setup node from node version file
|
|
uses: ./
|
|
with:
|
|
node-version-file: '__tests__/data/package-volta-extends.json'
|
|
- name: Verify node
|
|
run: __tests__/verify-node.sh 24
|
|
|
|
node-dist:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
|
|
node-version: [17, 19]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Setup Node from dist
|
|
uses: ./
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Verify node and npm
|
|
run: __tests__/verify-node.sh "${{ matrix.node-version }}"
|
|
shell: bash
|
|
|
|
old-versions:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest-large]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
# test old versions which didn't have npm and layout different
|
|
- name: Setup node 0.12.18 from dist
|
|
uses: ./
|
|
with:
|
|
node-version: 0.12.18
|
|
- name: Verify node
|
|
run: __tests__/verify-node.sh 0.12.18 SKIP_NPM
|
|
shell: bash
|
|
|
|
arch:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Setup node 20 x86 from dist
|
|
uses: ./
|
|
with:
|
|
node-version: '20'
|
|
architecture: 'x86'
|
|
- name: Verify node
|
|
run: __tests__/verify-arch.sh "ia32"
|
|
shell: bash
|
|
|
|
node-latest-aliases:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-large]
|
|
node-version: [current, latest, node]
|
|
steps:
|
|
- name: Get node version
|
|
run: |
|
|
latestNodeVersion=$(curl https://nodejs.org/dist/index.json | jq -r '. [0].version')
|
|
echo "LATEST_NODE_VERSION=$latestNodeVersion" >> $GITHUB_OUTPUT
|
|
id: version
|
|
shell: bash
|
|
- uses: actions/checkout@v5
|
|
- name: Setup Node
|
|
uses: ./
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Retrieve version after install
|
|
run: |
|
|
updatedVersion=$(echo $(node --version))
|
|
echo "NODE_VERSION_UPDATED=$updatedVersion" >> $GITHUB_OUTPUT
|
|
id: updatedVersion
|
|
shell: bash
|
|
- name: Compare versions
|
|
if: ${{ steps.version.outputs.LATEST_NODE_VERSION != steps.updatedVersion.outputs.NODE_VERSION_UPDATED}}
|
|
run: |
|
|
echo "Latest node version failed to download."
|
|
exit 1
|