@@ -30,6 +30,6 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Run MCP lint/format/tests via nix-shell
|
- name: Run MCP lint/format/tests via nix-shell
|
||||||
env:
|
run: |
|
||||||
GITEA_WORKSPACE: ${{ github.workspace }}
|
cd "${GITEA_WORKSPACE:-${GITHUB_WORKSPACE:-$PWD}}"
|
||||||
run: nix run .#mcp-tests
|
nix run .#mcp-tests
|
||||||
|
|||||||
@@ -41,6 +41,11 @@
|
|||||||
cd "''${GITEA_WORKSPACE}"
|
cd "''${GITEA_WORKSPACE}"
|
||||||
elif [ -n "''${GITHUB_WORKSPACE:-}" ]; then
|
elif [ -n "''${GITHUB_WORKSPACE:-}" ]; then
|
||||||
cd "''${GITHUB_WORKSPACE}"
|
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
|
fi
|
||||||
while [ ! -x ./scripts/mcp-server/run-tests.sh ]; do
|
while [ ! -x ./scripts/mcp-server/run-tests.sh ]; do
|
||||||
if [ "$PWD" = "/" ]; then
|
if [ "$PWD" = "/" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user