Skip to content

Commit 9f490db

Browse files
committed
test: add test cases for installation methods for lefthook and go-air
1 parent a3c0c45 commit 9f490db

6 files changed

Lines changed: 55 additions & 2 deletions

File tree

test/go-air/install_from_github.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
source dev-container-features-test-lib
6+
7+
check "air version" air -v
8+
9+
reportResults

test/go-air/install_using_go.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
source dev-container-features-test-lib
6+
7+
check "air version" air -v
8+
9+
reportResults

test/go-air/scenarios.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
{
2-
"test": {
2+
"install_using_go": {
3+
"image": "mcr.microsoft.com/devcontainers/base:debian",
4+
"features": {
5+
"ghcr.io/devcontainers/features/go:1": {},
6+
"go-air": {
7+
"installDirectlyFromGitHubRelease": "false"
8+
}
9+
}
10+
},
11+
"install_from_github": {
312
"image": "mcr.microsoft.com/devcontainers/base:debian",
413
"features": {
514
"go-air": {}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
source dev-container-features-test-lib
6+
7+
check "lefthook version" lefthook version
8+
9+
reportResults

test/lefthook/install_using_apt.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
source dev-container-features-test-lib
6+
7+
check "lefthook version" lefthook version
8+
9+
reportResults

test/lefthook/scenarios.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
{
2-
"test": {
2+
"install_using_apt": {
3+
"image": "mcr.microsoft.com/devcontainers/base:debian",
4+
"features": {
5+
"lefthook": {
6+
"installDirectlyFromGitHubRelease": "false"
7+
}
8+
}
9+
},
10+
"install_from_github": {
311
"image": "mcr.microsoft.com/devcontainers/base:debian",
412
"features": {
513
"lefthook": {}

0 commit comments

Comments
 (0)