Skip to content

Update Go version to 1.26.5 across all modules and workflows #215

Update Go version to 1.26.5 across all modules and workflows

Update Go version to 1.26.5 across all modules and workflows #215

name: SDK Integration Test
on:
workflow_dispatch:
pull_request:
branches:
- main
paths:
- 'sdk/**'
- '.github/workflows/sdk-integration-test.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:
integration-test:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.26.5'
cache-dependency-path: '**/go.sum'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Inject local SDK into gateway modules
run: |
cd gateway/gateway-runtime/policy-engine
go mod edit -replace github.com/wso2/api-platform/sdk=../../../sdk
cd ../../gateway-builder
go mod edit -replace github.com/wso2/api-platform/sdk=../../sdk
cd ../gateway-controller
go mod edit -replace github.com/wso2/api-platform/sdk=../../sdk
- name: Build coverage-instrumented images
run: |
cd gateway
make build-coverage VERSION=test
- name: Build mock server images
run: make -C tests/mock-servers build
- name: Build sample-service
run: |
cd samples/sample-service
make build
- name: Run gateway integration tests
run: |
cd gateway
make test-integration
- name: Debug on failure - Dump logs
if: failure()
run: |
echo "=== Docker Containers ==="
docker ps -a
echo ""
echo "=== gateway/it/logs Directory Contents ==="
if [ -d gateway/it/logs ]; then
if [ "$(ls -A gateway/it/logs)" ]; then
for f in gateway/it/logs/*; do
echo ""
echo "--- Contents of $f ---"
cat "$f"
done
else
echo "No log files found in gateway/it/logs."
fi
else
echo "Directory gateway/it/logs does not exist."
fi