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 "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 "=========================================="
|
||||||
|
|||||||
Reference in new issue
Block a user