Files
setup-node/.github/workflows/e2e-cache.yml
dependabot[bot] 94196ee1d1
Some checks failed
Basic validation / Basic validation (push) Failing after 4s
Check dist / Check dist/ (push) Failing after 0s
e2e-cache / Test npm (Node 22, ubuntu-latest) (push) Failing after 43s
e2e-cache / Test npm (Node 24, ubuntu-latest) (push) Failing after 39s
e2e-cache / Test npm (Node 26, ubuntu-latest) (push) Failing after 49s
e2e-cache / Test pnpm (Node 22, ubuntu-latest) (push) Failing after 56s
e2e-cache / Test pnpm (Node 24, ubuntu-latest) (push) Failing after 47s
e2e-cache / Test pnpm (Node 26, ubuntu-latest) (push) Failing after 50s
e2e-cache / Test yarn 1 (Node 22, ubuntu-latest) (push) Failing after 45s
e2e-cache / Test yarn 1 (Node 24, ubuntu-latest) (push) Failing after 52s
e2e-cache / Test yarn 1 (Node 26, ubuntu-latest) (push) Failing after 1m34s
e2e-cache / Test yarn 3 (Node 22, ubuntu-latest) (push) Failing after 30s
e2e-cache / Test yarn 3 (Node 24, ubuntu-latest) (push) Failing after 31s
e2e-cache / Test yarn 3 (Node 26, ubuntu-latest) (push) Failing after 31s
e2e-cache / Test yarn subprojects (22) (push) Failing after 45s
e2e-cache / Test yarn subprojects (24) (push) Failing after 57s
e2e-cache / Test yarn subprojects (26) (push) Failing after 43s
e2e-cache / Test yarn subprojects all locally managed (22) (push) Failing after 45s
e2e-cache / Test yarn subprojects all locally managed (24) (push) Failing after 40s
e2e-cache / Test yarn subprojects all locally managed (26) (push) Failing after 48s
e2e-cache / Test yarn subprojects some locally managed (22) (push) Failing after 44s
e2e-cache / Test yarn subprojects some locally managed (24) (push) Failing after 47s
e2e-cache / Test yarn subprojects some locally managed (26) (push) Failing after 54s
e2e-cache / Test yarn subprojects managed by git (22) (push) Failing after 49s
e2e-cache / Test yarn subprojects managed by git (24) (push) Failing after 42s
e2e-cache / Test yarn subprojects managed by git (26) (push) Failing after 1m1s
e2e-cache / Test auto cache with top-level packageManager (22, ubuntu-latest) (push) Failing after 49s
e2e-cache / Test auto cache with top-level packageManager (24, ubuntu-latest) (push) Failing after 42s
e2e-cache / Test auto cache with top-level packageManager (26, ubuntu-latest) (push) Failing after 10s
e2e-cache / Test auto cache with devEngines.packageManager (22, ubuntu-latest) (push) Failing after 46s
e2e-cache / Test auto cache with devEngines.packageManager (24, ubuntu-latest) (push) Failing after 59s
e2e-cache / Test auto cache with devEngines.packageManager (26, ubuntu-latest) (push) Failing after 51s
Licensed / Licensed (push) Failing after 4s
proxy / test-proxy (push) Failing after 2m12s
proxy / test-bypass-proxy (push) Failing after 47s
versions / local-cache (22, ubuntu-latest) (push) Failing after 31s
versions / local-cache (24, ubuntu-latest) (push) Failing after 1m35s
versions / local-cache (26, ubuntu-latest) (push) Failing after 30s
versions / lts-syntax (lts/*, ubuntu-latest) (push) Failing after 30s
versions / lts-syntax (lts/-1, ubuntu-latest) (push) Failing after 31s
versions / v8-canary-syntax (26-v8-canary, ubuntu-latest) (push) Failing after 30s
versions / v8-canary-syntax (26.0.0-v8-canary, ubuntu-latest) (push) Failing after 30s
versions / v8-canary-syntax (26.0.0-v8-canary20251016054584e5cf, ubuntu-latest) (push) Failing after 31s
versions / nightly-syntax (24.0.0-nightly, ubuntu-latest) (push) Failing after 30s
versions / nightly-syntax (25-nightly, ubuntu-latest) (push) Failing after 30s
versions / nightly-syntax (26-nightly, ubuntu-latest) (push) Failing after 1m2s
versions / rc-syntax (22.14.0-rc.1, ubuntu-latest) (push) Failing after 49s
versions / rc-syntax (24.0.0-rc.4, ubuntu-latest) (push) Failing after 43s
versions / rc-syntax (26.0.0-rc.1, ubuntu-latest) (push) Failing after 46s
versions / manifest (22.0.0, ubuntu-latest) (push) Failing after 1m35s
versions / manifest (24.9.0, ubuntu-latest) (push) Failing after 17m0s
versions / manifest (26.5.0, ubuntu-latest) (push) Failing after 49s
versions / check-latest (22, ubuntu-latest) (push) Failing after 1m35s
versions / check-latest (24, ubuntu-latest) (push) Failing after 30s
versions / check-latest (26, ubuntu-latest) (push) Failing after 30s
versions / version-file (.nvmrc, ubuntu-latest) (push) Failing after 31s
versions / version-file (.tool-versions, ubuntu-latest) (push) Failing after 31s
versions / version-file (.tool-versions-node, ubuntu-latest) (push) Failing after 30s
versions / version-file (mise.toml, ubuntu-latest) (push) Failing after 31s
versions / version-file (package.json, ubuntu-latest) (push) Failing after 31s
versions / version-file-dev-engines (ubuntu-latest) (push) Failing after 17m9s
versions / version-file-volta (ubuntu-latest) (push) Failing after 17m3s
versions / version-file-volta-extends (ubuntu-latest) (push) Failing after 46s
versions / node-dist (21, ubuntu-latest) (push) Failing after 49s
versions / node-dist (23, ubuntu-latest) (push) Failing after 47s
versions / old-versions (ubuntu-latest) (push) Failing after 43s
versions / node-latest-aliases (current, ubuntu-latest) (push) Failing after 54s
versions / node-latest-aliases (latest, ubuntu-latest) (push) Failing after 54s
versions / node-latest-aliases (node, ubuntu-latest) (push) Failing after 58s
e2e-cache / Test npm (Node 22, macos-15-intel) (push) Has been cancelled
e2e-cache / Test npm (Node 22, macos-latest) (push) Has been cancelled
e2e-cache / Test npm (Node 22, windows-latest) (push) Has been cancelled
e2e-cache / Test npm (Node 24, macos-15-intel) (push) Has been cancelled
e2e-cache / Test npm (Node 24, macos-latest) (push) Has been cancelled
e2e-cache / Test npm (Node 24, windows-latest) (push) Has been cancelled
e2e-cache / Test npm (Node 26, macos-15-intel) (push) Has been cancelled
e2e-cache / Test npm (Node 26, macos-latest) (push) Has been cancelled
e2e-cache / Test npm (Node 26, windows-latest) (push) Has been cancelled
e2e-cache / Test pnpm (Node 22, macos-15-intel) (push) Has been cancelled
e2e-cache / Test pnpm (Node 22, macos-latest) (push) Has been cancelled
e2e-cache / Test pnpm (Node 22, windows-latest) (push) Has been cancelled
e2e-cache / Test pnpm (Node 24, macos-15-intel) (push) Has been cancelled
e2e-cache / Test pnpm (Node 24, macos-latest) (push) Has been cancelled
e2e-cache / Test pnpm (Node 24, windows-latest) (push) Has been cancelled
e2e-cache / Test pnpm (Node 26, macos-15-intel) (push) Has been cancelled
e2e-cache / Test pnpm (Node 26, macos-latest) (push) Has been cancelled
e2e-cache / Test pnpm (Node 26, windows-latest) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node 22, macos-15-intel) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node 22, macos-latest) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node 22, windows-latest) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node 24, macos-15-intel) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node 24, macos-latest) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node 24, windows-latest) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node 26, macos-15-intel) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node 26, macos-latest) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node 26, windows-latest) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node 22, macos-15-intel) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node 22, macos-latest) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node 22, windows-latest) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node 24, macos-15-intel) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node 24, macos-latest) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node 24, windows-latest) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node 26, macos-15-intel) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node 26, macos-latest) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node 26, windows-latest) (push) Has been cancelled
e2e-cache / Test auto cache with top-level packageManager (22, macos-15-intel) (push) Has been cancelled
e2e-cache / Test auto cache with top-level packageManager (22, macos-latest) (push) Has been cancelled
e2e-cache / Test auto cache with top-level packageManager (22, windows-latest) (push) Has been cancelled
e2e-cache / Test auto cache with top-level packageManager (24, macos-15-intel) (push) Has been cancelled
e2e-cache / Test auto cache with top-level packageManager (24, macos-latest) (push) Has been cancelled
e2e-cache / Test auto cache with top-level packageManager (24, windows-latest) (push) Has been cancelled
e2e-cache / Test auto cache with top-level packageManager (26, macos-15-intel) (push) Has been cancelled
e2e-cache / Test auto cache with top-level packageManager (26, macos-latest) (push) Has been cancelled
e2e-cache / Test auto cache with top-level packageManager (26, windows-latest) (push) Has been cancelled
e2e-cache / Test auto cache with devEngines.packageManager (22, macos-15-intel) (push) Has been cancelled
e2e-cache / Test auto cache with devEngines.packageManager (22, macos-latest) (push) Has been cancelled
e2e-cache / Test auto cache with devEngines.packageManager (22, windows-latest) (push) Has been cancelled
e2e-cache / Test auto cache with devEngines.packageManager (24, macos-15-intel) (push) Has been cancelled
e2e-cache / Test auto cache with devEngines.packageManager (24, macos-latest) (push) Has been cancelled
e2e-cache / Test auto cache with devEngines.packageManager (24, windows-latest) (push) Has been cancelled
e2e-cache / Test auto cache with devEngines.packageManager (26, macos-15-intel) (push) Has been cancelled
e2e-cache / Test auto cache with devEngines.packageManager (26, macos-latest) (push) Has been cancelled
e2e-cache / Test auto cache with devEngines.packageManager (26, windows-latest) (push) Has been cancelled
versions / local-cache (22, macos-15-intel) (push) Has been cancelled
versions / local-cache (22, macos-latest) (push) Has been cancelled
versions / local-cache (22, windows-latest) (push) Has been cancelled
versions / local-cache (24, macos-15-intel) (push) Has been cancelled
versions / local-cache (24, macos-latest) (push) Has been cancelled
versions / local-cache (24, windows-latest) (push) Has been cancelled
versions / local-cache (26, macos-15-intel) (push) Has been cancelled
versions / local-cache (26, macos-latest) (push) Has been cancelled
versions / local-cache (26, windows-latest) (push) Has been cancelled
versions / lts-syntax (lts/*, macos-15-intel) (push) Has been cancelled
versions / lts-syntax (lts/*, windows-latest) (push) Has been cancelled
versions / lts-syntax (lts/-1, macos-15-intel) (push) Has been cancelled
versions / lts-syntax (lts/-1, windows-latest) (push) Has been cancelled
versions / v8-canary-syntax (26-v8-canary, macos-15-intel) (push) Has been cancelled
versions / v8-canary-syntax (26-v8-canary, macos-latest) (push) Has been cancelled
versions / v8-canary-syntax (26-v8-canary, windows-latest) (push) Has been cancelled
versions / v8-canary-syntax (26.0.0-v8-canary, macos-15-intel) (push) Has been cancelled
versions / v8-canary-syntax (26.0.0-v8-canary, macos-latest) (push) Has been cancelled
versions / v8-canary-syntax (26.0.0-v8-canary, windows-latest) (push) Has been cancelled
versions / v8-canary-syntax (26.0.0-v8-canary20251016054584e5cf, macos-15-intel) (push) Has been cancelled
versions / v8-canary-syntax (26.0.0-v8-canary20251016054584e5cf, macos-latest) (push) Has been cancelled
versions / v8-canary-syntax (26.0.0-v8-canary20251016054584e5cf, windows-latest) (push) Has been cancelled
versions / nightly-syntax (24.0.0-nightly, macos-15-intel) (push) Has been cancelled
versions / nightly-syntax (24.0.0-nightly, macos-latest) (push) Has been cancelled
versions / nightly-syntax (24.0.0-nightly, windows-latest) (push) Has been cancelled
versions / nightly-syntax (25-nightly, macos-15-intel) (push) Has been cancelled
versions / nightly-syntax (25-nightly, macos-latest) (push) Has been cancelled
versions / nightly-syntax (25-nightly, windows-latest) (push) Has been cancelled
versions / nightly-syntax (26-nightly, macos-15-intel) (push) Has been cancelled
versions / nightly-syntax (26-nightly, macos-latest) (push) Has been cancelled
versions / nightly-syntax (26-nightly, windows-latest) (push) Has been cancelled
versions / rc-syntax (22.14.0-rc.1, macos-15-intel) (push) Has been cancelled
versions / rc-syntax (22.14.0-rc.1, macos-latest) (push) Has been cancelled
versions / rc-syntax (22.14.0-rc.1, windows-latest) (push) Has been cancelled
versions / rc-syntax (24.0.0-rc.4, macos-15-intel) (push) Has been cancelled
versions / rc-syntax (24.0.0-rc.4, macos-latest) (push) Has been cancelled
versions / rc-syntax (24.0.0-rc.4, windows-latest) (push) Has been cancelled
versions / rc-syntax (26.0.0-rc.1, macos-15-intel) (push) Has been cancelled
versions / rc-syntax (26.0.0-rc.1, macos-latest) (push) Has been cancelled
versions / rc-syntax (26.0.0-rc.1, windows-latest) (push) Has been cancelled
versions / manifest (22.0.0, macos-15-intel) (push) Has been cancelled
versions / manifest (22.0.0, macos-latest) (push) Has been cancelled
versions / manifest (22.0.0, windows-latest) (push) Has been cancelled
versions / manifest (24.9.0, macos-15-intel) (push) Has been cancelled
versions / manifest (24.9.0, macos-latest) (push) Has been cancelled
versions / manifest (24.9.0, windows-latest) (push) Has been cancelled
versions / manifest (26.5.0, macos-15-intel) (push) Has been cancelled
versions / manifest (26.5.0, macos-latest) (push) Has been cancelled
versions / manifest (26.5.0, windows-latest) (push) Has been cancelled
versions / check-latest (22, macos-15-intel) (push) Has been cancelled
versions / check-latest (22, macos-latest) (push) Has been cancelled
versions / check-latest (22, windows-latest) (push) Has been cancelled
versions / check-latest (24, macos-15-intel) (push) Has been cancelled
versions / check-latest (24, macos-latest) (push) Has been cancelled
versions / check-latest (24, windows-latest) (push) Has been cancelled
versions / check-latest (26, macos-15-intel) (push) Has been cancelled
versions / check-latest (26, macos-latest) (push) Has been cancelled
versions / check-latest (26, windows-latest) (push) Has been cancelled
versions / version-file (.nvmrc, macos-15-intel) (push) Has been cancelled
versions / version-file (.nvmrc, macos-latest) (push) Has been cancelled
versions / version-file (.nvmrc, windows-latest) (push) Has been cancelled
versions / version-file (.tool-versions, macos-15-intel) (push) Has been cancelled
versions / version-file (.tool-versions, macos-latest) (push) Has been cancelled
versions / version-file (.tool-versions, windows-latest) (push) Has been cancelled
versions / version-file (.tool-versions-node, macos-15-intel) (push) Has been cancelled
versions / version-file (.tool-versions-node, macos-latest) (push) Has been cancelled
versions / version-file (.tool-versions-node, windows-latest) (push) Has been cancelled
versions / version-file (mise.toml, macos-15-intel) (push) Has been cancelled
versions / version-file (mise.toml, macos-latest) (push) Has been cancelled
versions / version-file (mise.toml, windows-latest) (push) Has been cancelled
versions / version-file (package.json, macos-15-intel) (push) Has been cancelled
versions / version-file (package.json, macos-latest) (push) Has been cancelled
versions / version-file (package.json, windows-latest) (push) Has been cancelled
versions / version-file-dev-engines (macos-latest) (push) Has been cancelled
versions / version-file-dev-engines (windows-latest) (push) Has been cancelled
versions / version-file-volta (macos-15-intel) (push) Has been cancelled
versions / version-file-volta (macos-latest) (push) Has been cancelled
versions / version-file-volta (windows-latest) (push) Has been cancelled
versions / version-file-volta-extends (macos-15-intel) (push) Has been cancelled
versions / version-file-volta-extends (macos-latest) (push) Has been cancelled
versions / version-file-volta-extends (windows-latest) (push) Has been cancelled
versions / node-dist (21, macos-15-intel) (push) Has been cancelled
versions / node-dist (21, macos-latest) (push) Has been cancelled
versions / node-dist (21, windows-latest) (push) Has been cancelled
versions / node-dist (23, macos-15-intel) (push) Has been cancelled
versions / node-dist (23, macos-latest) (push) Has been cancelled
versions / node-dist (23, windows-latest) (push) Has been cancelled
versions / old-versions (macos-15-intel) (push) Has been cancelled
versions / old-versions (windows-latest) (push) Has been cancelled
versions / arch (push) Has been cancelled
versions / node-latest-aliases (current, macos-15-intel) (push) Has been cancelled
versions / node-latest-aliases (current, macos-latest) (push) Has been cancelled
versions / node-latest-aliases (current, windows-latest) (push) Has been cancelled
versions / node-latest-aliases (latest, macos-15-intel) (push) Has been cancelled
versions / node-latest-aliases (latest, macos-latest) (push) Has been cancelled
versions / node-latest-aliases (latest, windows-latest) (push) Has been cancelled
versions / node-latest-aliases (node, macos-15-intel) (push) Has been cancelled
versions / node-latest-aliases (node, macos-latest) (push) Has been cancelled
versions / node-latest-aliases (node, windows-latest) (push) Has been cancelled
Update configuration files / Update configuration files (push) Failing after 4s
CodeQL analysis / CodeQL analysis (push) Failing after 0s
Bump pnpm/action-setup from 6.0.9 to 6.0.10 (#1602)
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 6.0.9 to 6.0.10.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](0ebf47130e...0977fd9972)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-version: 6.0.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-25 12:13:52 -05:00

305 lines
9.5 KiB
YAML

name: e2e-cache
on:
pull_request:
paths-ignore:
- '**.md'
push:
branches:
- main
- releases/*
paths-ignore:
- '**.md'
jobs:
node-npm-depencies-caching:
name: Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-15-intel]
node-version: [22, 24, 26]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Clean global cache
run: npm cache clean --force
- name: Setup Node
uses: ./
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Verify node and npm
run: __tests__/verify-node.sh "${{ matrix.node-version }}"
shell: bash
node-pnpm-depencies-caching:
name: Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-15-intel]
node-version: [22, 24, 26]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install pnpm
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
with:
version: 10
- name: Generate pnpm file
run: pnpm install
- name: Remove dependencies
shell: pwsh
run: Remove-Item node_modules -Force -Recurse
- name: Clean global cache
run: rm -rf ~/.pnpm-store
shell: bash
- name: Setup Node
uses: ./
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Verify node and pnpm
run: __tests__/verify-node.sh "${{ matrix.node-version }}"
shell: bash
node-yarn1-depencies-caching:
name: Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-15-intel]
node-version: [22, 24, 26]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Yarn version
run: yarn --version
- name: Generate yarn file
run: yarn install --ignore-engines
- name: Remove dependencies
shell: pwsh
run: Remove-Item node_modules -Force -Recurse
- name: Clean global cache
run: yarn cache clean
- name: Setup Node
uses: ./
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --ignore-engines
- name: Verify node and yarn
run: __tests__/verify-node.sh "${{ matrix.node-version }}"
shell: bash
node-yarn3-depencies-caching:
name: Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-15-intel]
node-version: [22, 24, 26]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Update yarn
run: yarn set version 3.6.4
- name: Yarn version
run: yarn --version
- name: Generate simple .yarnrc.yml
run: |
echo "nodeLinker: node-modules" >> .yarnrc.yml
- name: Generate yarn file
run: yarn install
- name: Remove dependencies
shell: pwsh
run: Remove-Item node_modules -Force -Recurse
- name: Clean global cache
run: yarn cache clean --all
- name: Setup Node
uses: ./
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Verify node and yarn
run: __tests__/verify-node.sh "${{ matrix.node-version }}"
shell: bash
yarn-subprojects:
name: Test yarn subprojects
strategy:
matrix:
node-version: [22, 24, 26]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: prepare sub-projects
run: __tests__/prepare-yarn-subprojects.sh yarn1
# expect
# - no errors
# - log
# ##[debug]Cache Paths:
# ##[debug]["sub2/.yarn/cache","sub3/.yarn/cache","../../../.cache/yarn/v6"]
- name: Setup Node
uses: ./
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache-dependency-path: |
**/*.lock
yarn.lock
yarn-subprojects-berry-local:
name: Test yarn subprojects all locally managed
strategy:
matrix:
node-version: [22, 24, 26]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: prepare sub-projects
run: __tests__/prepare-yarn-subprojects.sh keepcache keepcache
# expect
# - no errors
# - log
# ##[info]All dependencies are managed locally by yarn3, the previous cache can be used
# ##[debug]["node-cache-Linux-yarn-401024703386272f1a950c9f014cbb1bb79a7a5b6e1fb00e8b90d06734af41ee","node-cache-Linux-yarn"]
- name: Setup Node
uses: ./
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache-dependency-path: |
sub2/*.lock
sub3/*.lock
yarn-subprojects-berry-global:
name: Test yarn subprojects some locally managed
strategy:
matrix:
node-version: [22, 24, 26]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: prepare sub-projects
run: __tests__/prepare-yarn-subprojects.sh global
# expect
# - no errors
# - log must
# ##[debug]"/home/runner/work/setup-node-test/setup-node-test/sub2" dependencies are managed by yarn 3 locally
# ##[debug]"/home/runner/work/setup-node-test/setup-node-test/sub3" dependencies are not managed by yarn 3 locally
- name: Setup Node
uses: ./
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache-dependency-path: |
sub2/*.lock
sub3/*.lock
yarn-subprojects-berry-git:
name: Test yarn subprojects managed by git
strategy:
matrix:
node-version: [22, 24, 26]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: prepare sub-projects
run: /bin/bash __tests__/prepare-yarn-subprojects.sh keepcache
# expect
# - no errors
# - log
# [debug]"/home/runner/work/setup-node-test/setup-node-test/sub2" has .yarn/cache - dependencies are kept in the repository
# [debug]"/home/runner/work/setup-node-test/setup-node-test/sub3" has .yarn/cache - dependencies are kept in the repository
# [debug]["node-cache-Linux-yarn-401024703386272f1a950c9f014cbb1bb79a7a5b6e1fb00e8b90d06734af41ee"]
- name: Setup Node
uses: ./
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache-dependency-path: |
sub2/*.lock
sub3/*.lock
node-npm-packageManager-auto-cache:
name: Test auto cache with top-level packageManager
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-15-intel]
node-version: [22, 24, 26]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Create package.json with packageManager field
run: |
echo '{ "name": "test-project", "version": "1.0.0", "packageManager": "npm@8.0.0" }' > package.json
- name: Clean global cache
run: npm cache clean --force
- name: Setup Node with caching enabled
uses: ./
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Verify node and npm
run: __tests__/verify-node.sh "${{ matrix.node-version }}"
shell: bash
node-npm-devEngines-auto-cache:
name: Test auto cache with devEngines.packageManager
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-15-intel]
node-version: [22, 24, 26]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Create package.json with devEngines field
run: |
echo '{
"name": "test-project",
"version": "1.0.0",
"devEngines": {
"packageManager": {
"name": "npm",
"onFail": "error"
}
}
}' > package.json
- name: Clean global cache
run: npm cache clean --force
- name: Setup Node with caching enabled
uses: ./
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Verify node and npm
run: __tests__/verify-node.sh "${{ matrix.node-version }}"
shell: bash