Skip to content

Commit c420a89

Browse files
committed
check yarn version as well.
1 parent 7276797 commit c420a89

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

test/node/install_node_debian_bookworm.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ YARN_VERSION="4.9.4"
1111
# Definition specific tests
1212
check "version" node --version
1313
check "pnpm" pnpm -v
14+
check "yarn" yarn --version
1415

1516
# Corepack provides shims for package managers like yarn. The first time yarn is invoked via the "yarn"
1617
# command, corepack will interactively request permission to download the yarn binary. To

test/node/install_node_debian_trixie.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ YARN_VERSION="4.9.4"
1111
# Definition specific tests
1212
check "version" node --version
1313
check "pnpm" pnpm -v
14+
check "yarn" yarn --version
1415

1516
# Corepack provides shims for package managers like yarn. The first time yarn is invoked via the "yarn"
1617
# command, corepack will interactively request permission to download the yarn binary. To
1718
# avoid this interactive mode and download the binary automatically, we explicitly call "corepack use yarn"
1819
# instead (doesn't require user input). Once that command completes, "yarn" can be used in a non-interactive mode.
20+
1921
check "yarn shim location" bash -c ". /usr/local/share/nvm/nvm.sh && type yarn &> /dev/null"
2022
check "download yarn" bash -c ". /usr/local/share/nvm/nvm.sh && corepack use yarn@${YARN_VERSION}"
2123
check "yarn version" bash -c ". /usr/local/share/nvm/nvm.sh && yarn --version | grep ${YARN_VERSION}"

0 commit comments

Comments
 (0)