From 7ec092a134b4915a93c4a69f71b069e814891a2f Mon Sep 17 00:00:00 2001 From: kankys Date: Tue, 15 Sep 2026 21:18:19 +0200 Subject: [PATCH] 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 --- .github/workflows/api-tests.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/api-tests.yml b/.github/workflows/api-tests.yml index 0729a97..94351a5 100644 --- a/.github/workflows/api-tests.yml +++ b/.github/workflows/api-tests.yml @@ -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 "=========================================="