fix: update CI/CD to run bruno tests from collection root

Bruno CLI requires running from the collection root directory that contains opencollection.yml.
Changed test execution to cd into each collection directory before running tests.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
kankys committed 2026-09-15 21:18:19 +02:00
1 parent d0cdabbf11
commit 7ec092a134
1 file changed
+4 -2
+4 -2
View File
@@ -61,13 +61,15 @@ jobs:
echo "Spouštím testy pro: $dir" echo "Spouštím testy pro: $dir"
echo "==========================================" echo "=========================================="
# Spust testy a zachyt výsledek # Přepnout do složky kolekce a spustit testy
if npx @usebruno/cli run "${dir#apiTest/}" -r; then cd "$dir"
if npx @usebruno/cli run -r; then
echo "✅ Testy pro $(basename $dir) prošly" echo "✅ Testy pro $(basename $dir) prošly"
else else
echo "❌ Testy pro $(basename $dir) selhaly" echo "❌ Testy pro $(basename $dir) selhaly"
ALL_PASSED=false ALL_PASSED=false
fi fi
cd ../..
done done
echo "==========================================" echo "=========================================="