Skip to content

Commit 854cd8c

Browse files
committed
Enable integration tests in GitHub Actions
- Enable Ko setup step for building Docker images - Enable integration test step to run task test-integration - Fix image name mismatch: align KO_DOCKER_REPO and IMAGE_NAME to use ghcr.io/stackloklabs/yardstick (without /server suffix) to match the default set by setup-ko action The integration tests validate all three MCP transports: - STDIO transport via Docker container - SSE transport on port 8080 - Streamable HTTP transport on port 8081 Resolves #4 Signed-off-by: Azeez Syed <[email protected]>
1 parent 38a1ea8 commit 854cd8c

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,8 @@ jobs:
1919
go-version-file: 'go.mod'
2020
cache: true
2121

22-
# TODO: Uncomment this when we have fixed the ability to run the
23-
# integration tests on the github actions runner.
24-
# - name: Setup Ko
25-
# uses: ko-build/[email protected]
26-
27-
# TODO: Uncomment this when we have fixed the ability to run the
28-
# integration tests on the github actions runner.
29-
# - name: Set up Docker
30-
# uses: docker/setup-docker-action@v4
22+
- name: Setup Ko
23+
uses: ko-build/[email protected]
3124

3225
- name: Install Task
3326
uses: arduino/setup-task@v2
@@ -38,7 +31,5 @@ jobs:
3831
- name: Test
3932
run: task test
4033

41-
# TODO: Uncomment this when we have fixed the ability to run the
42-
# integration tests on the github actions runner.
43-
# - name: Test
44-
# run: task test-integration
34+
- name: Integration Test
35+
run: task test-integration

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ tasks:
8383
build-image:
8484
desc: Build the image locally with ko
8585
env:
86-
KO_DOCKER_REPO: ghcr.io/stackloklabs/yardstick/server
86+
KO_DOCKER_REPO: ghcr.io/stackloklabs/yardstick
8787
VERSION: dev-local
8888
cmds:
8989
- |

test/integration-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ else
2727
fi
2828

2929
# Get the image name from ko build output
30-
IMAGE_NAME="ghcr.io/stackloklabs/yardstick/server:latest"
30+
IMAGE_NAME="ghcr.io/stackloklabs/yardstick:latest"
3131

3232
###################################################################
3333
################## START - STDIO TRANSPORT TESTING ################

0 commit comments

Comments
 (0)