Skip to content

Commit bc3a7e5

Browse files
authored
feat(asdf-vm.com): Add feature. (#13)
* feat(`asdf-vm.com`): Add feature. * feat(`asdf-vm.com`): Fix test. * feat(`asdf-vm.com`): Fix test. * feat(`asdf-vm.com`): Fix test. * feat(`asdf-vm.com`): Fix test.
1 parent 1c1dbb7 commit bc3a7e5

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
features:
16+
- asdf-vm.com
1617
- atuin.sh
1718
- btop
1819
- deno.com
@@ -39,6 +40,7 @@ jobs:
3940
strategy:
4041
matrix:
4142
features:
43+
- asdf-vm.com
4244
- atuin.sh
4345
- btop
4446
- deno.com
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "asdf-vm.com",
3+
"id": "asdf-vm.com",
4+
"version": "1.0.0",
5+
"description": "Install \"asdf\" binary to the HOME folder of the REMOTE user",
6+
"documentationURL": "https://github.com/devcontainer-community/devcontainer-features/tree/main/src/asdf-vm.com",
7+
"options": {
8+
"version": {
9+
"type": "string",
10+
"default": "latest",
11+
"proposals": [
12+
"latest"
13+
],
14+
"description": "Version of \"asdf\" to install."
15+
}
16+
}
17+
}

src/asdf-vm.com/install.sh

Whitespace-only changes.

test/asdf-vm.com/test.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
4+
set -e
5+
6+
# Optional: Import test library bundled with the devcontainer CLI
7+
# See https://github.com/devcontainers/cli/blob/HEAD/docs/features/test.md#dev-container-features-test-lib
8+
# Provides the 'check' and 'reportResults' commands.
9+
source dev-container-features-test-lib
10+
11+
# Feature-specific tests
12+
# The 'check' command comes from the dev-container-features-test-lib. Syntax is...
13+
# check <LABEL> <cmd> [args...]
14+
15+
# check "execute command" bash -c "/home/vscode/.asdf/bin/asdf --version" # TODO: Fix this test
16+
17+
# Report results
18+
# If any of the checks above exited with a non-zero exit code, the test will fail.
19+
reportResults

0 commit comments

Comments
 (0)