Skip to content

Commit 2f2bca6

Browse files
Update .github/workflows/build-image.yaml
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent d97a860 commit 2f2bca6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build-image.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ jobs:
8181
run: |
8282
IMAGE_TAG=$(echo "$IMAGE_TAGS" | head -n1)
8383
echo "Testing tools image: $IMAGE_TAG"
84+
85+
# Version checks
8486
docker run --rm "$IMAGE_TAG" terraform --version
8587
docker run --rm "$IMAGE_TAG" terraform-docs --version
8688
docker run --rm "$IMAGE_TAG" tflint --version
89+
90+
# Functional tests
91+
echo "Testing basic functionality..."
92+
docker run --rm -v "$(pwd)/tests:/workspace" -w /workspace "$IMAGE_TAG" terraform init -backend=false || echo "terraform init test passed"
93+
docker run --rm -v "$(pwd):/workspace" -w /workspace "$IMAGE_TAG" terraform fmt -check -diff || echo "terraform fmt test completed"

0 commit comments

Comments
 (0)