1
0
mirror of https://github.com/actions/setup-node.git synced 2025-02-27 09:10:31 +07:00
setup-node/__tests__
Peng Xiao 39370e3970
fix: add arch to cached path ()
* fix: add arch to cached path

* fix: change from using env to os module

* fix: use process.env.RUNNER_OS instead of os.platform()

* fix: remove unused var
2024-10-23 22:31:49 -05:00
..
data
mock
authutil.test.ts
cache-restore.test.ts fix: add arch to cached path () 2024-10-23 22:31:49 -05:00
cache-save.test.ts
cache-utils.test.ts
canary-installer.test.ts
main.test.ts
nightly-installer.test.ts
official-installer.test.ts
prepare-yarn-subprojects.sh
problem-matcher.test.ts
rc-installer.test.ts
README.md
verify-arch.sh
verify-node.sh

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