@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user