Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ jobs:
- postgresql-client
- shellcheck
baseImage:
- debian:latest
- ubuntu:latest
- mcr.microsoft.com/devcontainers/base:debian
- mcr.microsoft.com/devcontainers/base:ubuntu
continue-on-error: true
steps:
Expand Down
20 changes: 18 additions & 2 deletions src/node/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Node.js",
"id": "node",
"version": "1.0.0",
"version": "1.1.0",
"description": "Install Node.js from Nodesource's DEB repository.",
"options": {
"version": {
Expand All @@ -17,7 +17,23 @@
"description": "Select or enter a Node.js version."
}
},
"containerEnv": {
"NPM_CONFIG_CACHE": "/usr/local/npm"
},
"installsAfter": [
"ghcr.io/devcontainers/features/common-utils"
]
],
"mounts": [
{
"source": "npm-cache",
"target": "/usr/local/npm",
"type": "volume"
},
{
"source": "node_modules-cache",
"target": "${containerWorkspaceFolder}/node_modules",
"type": "volume"
}
],
"postCreateCommand": "sudo chown -R ${USER}:${USER} /usr/local/npm ${containerWorkspaceFolder}/node_modules"
}
2 changes: 1 addition & 1 deletion test/node/scenarios.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"node-20": {
"image": "debian:latest",
"image": "mcr.microsoft.com/devcontainers/base:debian",
"features": {
"node": {
"version": "20"
Expand Down