End-to-end publish test using examples from docs (#199)

This commit is contained in:
Charles Lowell 2025-07-25 16:09:17 -07:00 • committed by GitHub
commit 4f5e85b510
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

22
tests/integration/run.sh Executable file
View file

@ -0,0 +1,22 @@
#!/bin/bash
set -e
cleanup() {
echo "========== registry logs =========="
docker logs registry || true
echo "=========== cleaning up ==========="
docker compose down -v
}
go build -o ./bin/publisher ./tools/publisher
docker build -t registry --build-arg GO_BUILD_TAGS=noauth .
trap cleanup EXIT
export MCP_REGISTRY_GITHUB_CLIENT_ID=fake
export MCP_REGISTRY_GITHUB_CLIENT_SECRET=fake
docker compose -f docker-compose.yml -f tests/integration/docker-compose.integration-test.yml up --wait --wait-timeout 60
go run tests/integration/main.go