diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3a99e75..8129613 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -26,6 +26,7 @@ jobs: features: - rye - cypress + - starship steps: - uses: actions/checkout@v4 @@ -44,6 +45,7 @@ jobs: - rye - cypress - playwright + - starship steps: - uses: actions/checkout@v4 diff --git a/src/starship/devcontainer-feature.json b/src/starship/devcontainer-feature.json index 1c2487e..135727c 100644 --- a/src/starship/devcontainer-feature.json +++ b/src/starship/devcontainer-feature.json @@ -1,7 +1,7 @@ { "id": "starship", - "version": "0.1.5", + "version": "0.1.6", "name": "Starship", "description": "The minimal, blazing-fast, and infinitely customizable prompt for any shell!", - "postCreateCommand": "echo 'eval \"$(starship init bash)\"' >> ~/.bashrc" + "dependsOn": {"ghcr.io/devcontainers/features/common-utils:2": {}} } diff --git a/src/starship/install.sh b/src/starship/install.sh index 9c3fc49..ff214bb 100644 --- a/src/starship/install.sh +++ b/src/starship/install.sh @@ -1,4 +1,3 @@ -#!/bin/sh +#!/bin/env bash -apt-get install -y curl curl -sS https://starship.rs/install.sh | sh -s -- -y diff --git a/test/starship/test.sh b/test/starship/test.sh new file mode 100644 index 0000000..4d62fe0 --- /dev/null +++ b/test/starship/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +set -e + +source dev-container-features-test-lib + +check "binary in path" which starship + +reportResults