...4
Some checks failed
MCP Tests / mcp-tests (push) Failing after 10s

This commit is contained in:
Danilo Reyes
2026-02-08 15:09:34 -06:00
parent f95cf4a546
commit 67119653b5
2 changed files with 8 additions and 3 deletions

View File

@@ -30,6 +30,6 @@ jobs:
uses: actions/checkout@v4
- name: Run MCP lint/format/tests via nix-shell
env:
GITEA_WORKSPACE: ${{ github.workspace }}
run: nix run .#mcp-tests
run: |
cd "${GITEA_WORKSPACE:-${GITHUB_WORKSPACE:-$PWD}}"
nix run .#mcp-tests

View File

@@ -41,6 +41,11 @@
cd "''${GITEA_WORKSPACE}"
elif [ -n "''${GITHUB_WORKSPACE:-}" ]; then
cd "''${GITHUB_WORKSPACE}"
elif command -v git >/dev/null 2>&1; then
repo_root="$(git rev-parse --show-toplevel 2>/dev/null || true)"
if [ -n "$repo_root" ]; then
cd "$repo_root"
fi
fi
while [ ! -x ./scripts/mcp-server/run-tests.sh ]; do
if [ "$PWD" = "/" ]; then