Skip to content

Commit

Permalink
actually use dependsOn correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr authored Aug 17, 2023
1 parent 720396e commit 4443bb8
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: npm install -g @devcontainers/cli
- run: devcontainer features test -f ${{ matrix.id }} --skip-autogenerated
- run: devcontainer features test -f ${{ matrix.id }}
6 changes: 3 additions & 3 deletions src/prettier/devcontainer-feature.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"type": "string"
}
},
"installsAfter": [
"ghcr.io/devcontainers/features/node"
]
"dependsOn": {
"ghcr.io/devcontainers/features/node": {}
}
}
1 change: 0 additions & 1 deletion src/prettier/install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/bash
set -ex
command -v npm || echo "Needs ghcr.io/devcontainers/features/node or similar"

npm install -g prettier@$VERSION

Expand Down
6 changes: 3 additions & 3 deletions src/typescript/devcontainer-feature.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"type": "string"
}
},
"installsAfter": [
"ghcr.io/devcontainers/features/node"
]
"dependsOn": {
"ghcr.io/devcontainers/features/node": {}
}
}
1 change: 0 additions & 1 deletion src/typescript/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
set -ex
command -v npm || echo "Needs ghcr.io/devcontainers/features/node or similar"

npm install -g typescript@$VERSION
2 changes: 0 additions & 2 deletions test/prettier/scenarios.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
"base_ubuntu": {
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/devcontainers/features/node": {},
"prettier": {}
}
},
"debian_slim": {
"image": "debian:bookworm-slim",
"features": {
"ghcr.io/devcontainers/features/node": {},
"prettier": {}
}
}
Expand Down
2 changes: 0 additions & 2 deletions test/typescript/scenarios.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
"base_ubuntu": {
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/devcontainers/features/node": {},
"typescript": {}
}
},
"debian_slim": {
"image": "debian:bookworm-slim",
"features": {
"ghcr.io/devcontainers/features/node": {},
"typescript": {}
}
}
Expand Down

0 comments on commit 4443bb8

Please sign in to comment.