From 06cc43b11f9cf4a058173e180e67658901b539d9 Mon Sep 17 00:00:00 2001 From: Li Jie Date: Tue, 26 Nov 2024 11:52:56 +0800 Subject: [PATCH] test: test dirs under _demo only has *.go files --- .github/workflows/test_demo.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_demo.sh b/.github/workflows/test_demo.sh index 8e947f6a..42232e2f 100644 --- a/.github/workflows/test_demo.sh +++ b/.github/workflows/test_demo.sh @@ -1,13 +1,13 @@ #!/bin/bash set -e -# llgo run subdirectories under _demo and _pydemo +# llgo run subdirectories under _demo and _pydemo that contain *.go files total=0 failed=0 failed_cases="" for d in ./_demo/* ./_pydemo/*; do - total=$((total+1)) - if [ -d "$d" ]; then + if [ -d "$d" ] && [ -n "$(ls "$d"/*.go 2>/dev/null)" ]; then + total=$((total+1)) echo "Testing $d" if ! (cd "$d" && llgo run .); then echo "FAIL"