Skip to content

Commit 18e4df8

Browse files
committed
add specific version test
1 parent 2a2d3a5 commit 18e4df8

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

test/prek/scenarios.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,13 @@
44
"features": {
55
"prek": {}
66
}
7+
},
8+
"test_specific_version": {
9+
"image": "mcr.microsoft.com/devcontainers/base:debian",
10+
"features": {
11+
"prek": {
12+
"version": "0.3.7"
13+
}
14+
}
715
}
816
}

test/prek/test_specific_version.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 "prek version is equal to 0.3.7" sh -c "prek --version | grep '0.3.7'"
8+
9+
reportResults

0 commit comments

Comments
 (0)