File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "shellcheck-version" : {
3+ "image" : " debian:latest" ,
4+ "features" : {
5+ "shellcheck" : {
6+ "version" : " 0.5.0"
7+ }
8+ }
9+ },
10+
11+ "shellcheck-install-path" : {
12+ "image" : " debian:latest" ,
13+ "features" : {
14+ "shellcheck" : {
15+ "installPath" : " /usr/bin"
16+ }
17+ }
18+ }
19+ }
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -e
4+
5+ # Optional: Import test library bundled with the devcontainer CLI
6+ # See https://github.com/devcontainers/cli/blob/HEAD/docs/features/test.md#dev-container-features-test-lib
7+ # Provides the 'check' and 'reportResults' commands.
8+ # shellcheck source=/dev/null
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+ check " which shellcheck" bash -c " which shellcheck | grep /usr/bin/shellcheck"
15+
16+ # Report result
17+ # If any of the checks above exited with a non-zero exit code, the test will fail.
18+ reportResults
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -e
4+
5+ # Optional: Import test library bundled with the devcontainer CLI
6+ # See https://github.com/devcontainers/cli/blob/HEAD/docs/features/test.md#dev-container-features-test-lib
7+ # Provides the 'check' and 'reportResults' commands.
8+ # shellcheck source=/dev/null
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+ check " version" bash -c " shellcheck --version | grep 0.5.0"
15+
16+ # Report result
17+ # If any of the checks above exited with a non-zero exit code, the test will fail.
18+ reportResults
You can’t perform that action at this time.
0 commit comments