-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nc] test using gha-tools-action workflow for building job containers
Signed-off-by: Nic Cheneweth <[email protected]>
- Loading branch information
1 parent
c92e973
commit f67b5b4
Showing
2 changed files
with
94 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
#!/usr/bin/env bats | ||
|
||
@test "sudo version" { | ||
run bash -c "docker exec gha-container-base-image sudo --version" | ||
[[ "${output}" =~ "1.9" ]] | ||
} | ||
|
||
@test "gettext install" { | ||
run bash -c "docker exec gha-container-base-image less --version" | ||
[[ "${output}" =~ "643" ]] | ||
} | ||
|
||
@test "gcc version" { | ||
run bash -c "docker exec gha-container-base-image gcc --version" | ||
[[ "${output}" =~ "13.2" ]] | ||
} | ||
|
||
@test "cmake version" { | ||
run bash -c "docker exec gha-container-base-image cmake --version" | ||
[[ "${output}" =~ "3.27" ]] | ||
} | ||
@test "make version" { | ||
run bash -c "docker exec gha-container-base-image make --version" | ||
[[ "${output}" =~ "4.4" ]] | ||
} | ||
|
||
@test "curl version" { | ||
run bash -c "docker exec gha-container-base-image curl --version" | ||
[[ "${output}" =~ "8.5" ]] | ||
} | ||
|
||
@test "wget version" { | ||
run bash -c "docker exec gha-container-base-image wget --version" | ||
[[ "${output}" =~ "1.21" ]] | ||
} | ||
|
||
@test "unzip version" { | ||
run bash -c "docker exec gha-container-base-image unzip --version" | ||
[[ "${output}" =~ "6.0" ]] | ||
} | ||
|
||
@test "zip version" { | ||
run bash -c "docker exec gha-container-base-image zip --version" | ||
[[ "${output}" =~ "3.0" ]] | ||
} | ||
|
||
@test "jq version" { | ||
run bash -c "docker exec gha-container-base-image jq --version" | ||
[[ "${output}" =~ "1.7" ]] | ||
} | ||
|
||
@test "gnupg version" { | ||
run bash -c "docker exec gha-container-base-image gpg --version" | ||
[[ "${output}" =~ "2.4" ]] | ||
} | ||
|
||
@test "docker version" { | ||
run bash -c "docker exec gha-container-base-image docker --version" | ||
[[ "${output}" =~ "25.0" ]] | ||
} | ||
|
||
@test "bash version" { | ||
run bash -c "docker exec gha-container-base-image bash --version" | ||
[[ "${output}" =~ "5.2" ]] | ||
} | ||
|
||
@test "check locale" { | ||
run bash -c "docker exec gha-container-base-image locale" | ||
[[ "${output}" =~ "LC_ALL=en_US.UTF-8" ]] | ||
} | ||
|
||
@test "1password version" { | ||
run bash -c "docker exec gha-container-base-image op --version" | ||
[[ "${output}" =~ "2.28" ]] | ||
} | ||
|
||
@test "teller version" { | ||
run bash -c "docker exec gha-container-base-image teller version" | ||
[[ "${output}" =~ "1.5.6" ]] | ||
} | ||
|
||
@test "vault version" { | ||
run bash -c "docker exec gha-container-base-image vault -v" | ||
[[ "${output}" =~ "1.16" ]] | ||
} |