There was an error while loading. Please reload this page.
1 parent a258ab1 commit 5fa0f62Copy full SHA for 5fa0f62
1 file changed
.github/workflows/pipeline.yaml
@@ -97,14 +97,17 @@ jobs:
97
98
- name: Tests
99
run: |
100
+ set -x
101
OUTPUT=$(npx @modelcontextprotocol/conformance server --url http://localhost:8000/)
102
exit_code=$?
103
echo "$OUTPUT"
104
105
# Example: "Total: 3 passed, 16 failed"
106
passedTests=$(echo "$OUTPUT" | sed -nE 's/.*Total: ([0-9]+) passed.*/\1/p')
107
passedTests=${passedTests:-0}
- [ "$passedTests" -lt 8 ] && exit $exit_code
108
+
109
+ REQUIRED_TESTS_TO_PASS=8
110
+ [ "$passedTests" -lt "$REQUIRED_TESTS_TO_PASS" ] || exit $exit_code
111
112
qa:
113
runs-on: ubuntu-latest
0 commit comments