diff options
author | Samruddhi Khandale <skhandale@microsoft.com> | 2022-12-02 20:48:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-02 20:48:04 +0300 |
commit | 7a47fbff000bff65bec9fa4687eed87cc0bc39c3 (patch) | |
tree | 54b61ea9f66113bbdbd7536814607a1bf8bbea07 /test/node | |
parent | 46dfa11ecd3c507187eebbd6784c09d736737255 (diff) |
Node: Fix regression - Installing in ubuntu 18.04 (#319)
Node: Fix regression https://github.com/devcontainers/features/issues/317
Diffstat (limited to 'test/node')
-rwxr-xr-x | test/node/install_node_16_on_bionic.sh | 13 | ||||
-rw-r--r-- | test/node/scenarios.json | 10 |
2 files changed, 22 insertions, 1 deletions
diff --git a/test/node/install_node_16_on_bionic.sh b/test/node/install_node_16_on_bionic.sh new file mode 100755 index 0000000..1b301d3 --- /dev/null +++ b/test/node/install_node_16_on_bionic.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +# Definition specific tests +check "version" bash -c "node --version | grep 16" +check "nvm" bash -c ". /usr/local/share/nvm/nvm.sh && nvm install 10" + +# Report result +reportResults diff --git a/test/node/scenarios.json b/test/node/scenarios.json index 70e1051..6112a6e 100644 --- a/test/node/scenarios.json +++ b/test/node/scenarios.json @@ -34,5 +34,13 @@ "version": "19.1.0" } } + }, + "install_node_16_on_bionic": { + "image": "mcr.microsoft.com/devcontainers/base:ubuntu-18.04", + "features": { + "node": { + "version": "16" + } + } } -}
\ No newline at end of file +} |