Skip to content

Commit

Permalink
add missing node lts tests
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-cup committed Dec 11, 2024
1 parent 56c3d3b commit 0653e2d
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 0 deletions.
54 changes: 54 additions & 0 deletions tests/snapshots/generate_plan_tests__node_nvmrc_invalid_lts.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
source: tests/generate_plan_tests.rs
expression: plan
---
{
"providers": [],
"buildImage": "[build_image]",
"variables": {
"CI": "true",
"NIXPACKS_METADATA": "node",
"NODE_ENV": "production",
"NPM_CONFIG_PRODUCTION": "false"
},
"phases": {
"build": {
"name": "build",
"dependsOn": [
"install"
],
"cacheDirectories": [
"node_modules/.cache"
]
},
"install": {
"name": "install",
"dependsOn": [
"setup"
],
"cmds": [
"npm ci"
],
"cacheDirectories": [
"/root/.npm"
],
"paths": [
"/app/node_modules/.bin"
]
},
"setup": {
"name": "setup",
"nixPkgs": [
"nodejs_18",
"npm-8_x"
],
"nixOverlays": [
"https://github.com/railwayapp/nix-npm-overlay/archive/main.tar.gz"
],
"nixpkgsArchive": "[archive]"
}
},
"start": {
"cmd": "npm run start"
}
}
54 changes: 54 additions & 0 deletions tests/snapshots/generate_plan_tests__node_nvmrc_lts.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
source: tests/generate_plan_tests.rs
expression: plan
---
{
"providers": [],
"buildImage": "[build_image]",
"variables": {
"CI": "true",
"NIXPACKS_METADATA": "node",
"NODE_ENV": "production",
"NPM_CONFIG_PRODUCTION": "false"
},
"phases": {
"build": {
"name": "build",
"dependsOn": [
"install"
],
"cacheDirectories": [
"node_modules/.cache"
]
},
"install": {
"name": "install",
"dependsOn": [
"setup"
],
"cmds": [
"npm ci"
],
"cacheDirectories": [
"/root/.npm"
],
"paths": [
"/app/node_modules/.bin"
]
},
"setup": {
"name": "setup",
"nixPkgs": [
"nodejs_20",
"npm-8_x"
],
"nixOverlays": [
"https://github.com/railwayapp/nix-npm-overlay/archive/main.tar.gz"
],
"nixpkgsArchive": "[archive]"
}
},
"start": {
"cmd": "npm run start"
}
}

0 comments on commit 0653e2d

Please sign in to comment.