Skip to content

Commit 5fa0f62

Browse files
committed
require limit
1 parent a258ab1 commit 5fa0f62

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/pipeline.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,17 @@ jobs:
9797

9898
- name: Tests
9999
run: |
100+
set -x
100101
OUTPUT=$(npx @modelcontextprotocol/conformance server --url http://localhost:8000/)
101102
exit_code=$?
102103
echo "$OUTPUT"
103104
104105
# Example: "Total: 3 passed, 16 failed"
105106
passedTests=$(echo "$OUTPUT" | sed -nE 's/.*Total: ([0-9]+) passed.*/\1/p')
106107
passedTests=${passedTests:-0}
107-
[ "$passedTests" -lt 8 ] && exit $exit_code
108+
109+
REQUIRED_TESTS_TO_PASS=8
110+
[ "$passedTests" -lt "$REQUIRED_TESTS_TO_PASS" ] || exit $exit_code
108111
109112
qa:
110113
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)