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 "=========================================="
# Spust testy a zachyt výsledek
if npx @usebruno/cli run "${dir#apiTest/}" -r; then
# Přepnout do složky kolekce a spustit testy
cd "$dir"
if npx @usebruno/cli run -r; then
echo "✅ Testy pro $(basename $dir) prošly"
else
echo "❌ Testy pro $(basename $dir) selhaly"
ALL_PASSED=false
fi
cd ../..
done
echo "=========================================="