You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
setup-node/__tests__
Salman Chishti b7234cc9fe
Upgrade action to use node24 (#1325)
* Change Node.js version to 24

Update Node.js version from 20 to 24 in action.yml

* update and vulnerability fixes

* update node version check

* update licences

* node version check update

* update version for test

* node version

* update node version to 24.0.0 in tool-versions and package-volta.json

* node 24

* update to 24

* update to specify engines

* check failures fix

* update package-lock.json

* licensed update

* check failure fix

* documentation update

---------

Co-authored-by: Aparna Jyothi <aparnajyothi-y@github.com>
2 weeks ago
..
data Upgrade action to use node24 (#1325) 2 weeks ago
mock Detect cached folders from multiple directories (#735) 2 years ago
README.md Add support for nightly and rc versions (#611) 3 years ago
authutil.test.ts Detect cached folders from multiple directories (#735) 2 years ago
cache-restore.test.ts fix: add arch to cached path (#843) 11 months ago
cache-save.test.ts change getinput to getstate for cache (#816) 2 years ago
cache-utils.test.ts Revise `isGhes` logic (#1148) 11 months ago
canary-installer.test.ts feat: support private mirrors (#1240) 6 months ago
main.test.ts Enhance caching in setup-node with automatic package manager detection (#1348) 3 weeks ago
nightly-installer.test.ts feat: support private mirrors (#1240) 6 months ago
official-installer.test.ts feat: support private mirrors (#1240) 6 months ago
prepare-yarn-subprojects.sh Do not ivalidate the cache entirely on lock file change (#744) 2 years ago
problem-matcher.test.ts Add and configure ESLint and update configuration for Prettier (#703) 3 years ago
rc-installer.test.ts Add and configure ESLint and update configuration for Prettier (#703) 3 years ago
verify-arch.sh Add e2e arch test 5 years ago
verify-node.sh Upgrade action to use node24 (#1325) 2 weeks ago

README.md

Files located in data directory are used only for testing purposes.

Here the list of files in the data directory

  • .nvmrc, .tools-versions and package.json are used to test node-version-file logic
  • package-lock.json, pnpm-lock.yaml and yarn.lock are used to test cache logic
  • versions-manifest.json is used for unit testing to check downloading Node.js versions from the node-versions repository.
  • node-dist-index.json is used for unit testing to check downloading Node.js versions from the official site. The file was constructed from https://nodejs.org/dist/index.json
  • node-rc-index.json is used for unit testing to check downloading Node.js rc versions from the official site. The file was constructed from https://nodejs.org/download/rc/index.json
  • node-nightly-index.json is used for unit testing to check downloading Node.js nightly builds from the official site. The file was constructed from https://nodejs.org/download/nightly/index.json