mirror of
https://github.com/LukasKanka/api_test.git
synced 2026-11-11 06:34:36 +01:00
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:
1 parent
d0cdabbf11
commit
7ec092a134
1 file changed
+4
-2
@@ -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 "=========================================="
|
||||
|
||||
Reference in new issue
Block a user