Skip to content

Commit

Permalink
feat(asdf-vm.com): Add feature. (#13)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
sebst authored Oct 12, 2024
1 parent 1c1dbb7 commit bc3a7e5
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
strategy:
matrix:
features:
- asdf-vm.com
- atuin.sh
- btop
- deno.com
Expand All @@ -39,6 +40,7 @@ jobs:
strategy:
matrix:
features:
- asdf-vm.com
- atuin.sh
- btop
- deno.com
Expand Down
17 changes: 17 additions & 0 deletions src/asdf-vm.com/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "asdf-vm.com",
"id": "asdf-vm.com",
"version": "1.0.0",
"description": "Install \"asdf\" binary to the HOME folder of the REMOTE user",
"documentationURL": "https://github.com/devcontainer-community/devcontainer-features/tree/main/src/asdf-vm.com",
"options": {
"version": {
"type": "string",
"default": "latest",
"proposals": [
"latest"
],
"description": "Version of \"asdf\" to install."
}
}
}
Empty file added src/asdf-vm.com/install.sh
Empty file.
19 changes: 19 additions & 0 deletions test/asdf-vm.com/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash


set -e

# Optional: Import test library bundled with the devcontainer CLI
# See https://github.com/devcontainers/cli/blob/HEAD/docs/features/test.md#dev-container-features-test-lib
# Provides the 'check' and 'reportResults' commands.
source dev-container-features-test-lib

# Feature-specific tests
# The 'check' command comes from the dev-container-features-test-lib. Syntax is...
# check <LABEL> <cmd> [args...]

# check "execute command" bash -c "/home/vscode/.asdf/bin/asdf --version" # TODO: Fix this test

# Report results
# If any of the checks above exited with a non-zero exit code, the test will fail.
reportResults

0 comments on commit bc3a7e5

Please sign in to comment.