Skip to content

5.3.0

5.3.0 #97

Workflow file for this run

name: CI
on:
pull_request:
branches: [main, dev]
push:
branches: [main, dev]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test-and-build:
name: Test & Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: true
- uses: actions/setup-go@v6
with:
go-version: '1.25'
cache-dependency-path: src/mcp/go.sum
- name: Check go mod tidy
working-directory: src/mcp
run: |
go mod tidy
git diff --exit-code go.mod go.sum || (echo "go.mod/go.sum not tidy — run 'go mod tidy'" && exit 1)
- name: Run tests
working-directory: src/mcp
run: go test -v -race -coverprofile=coverage.out ./...
- name: Build binary
working-directory: src/mcp
run: go build -o quint-code -trimpath .
- name: Smoke test — binary starts and responds to MCP initialize
working-directory: src/mcp
run: |
RESPONSE=$(echo '{"jsonrpc":"2.0","method":"initialize","id":1,"params":{}}' | timeout 5 ./quint-code serve 2>/dev/null || true)
if echo "$RESPONSE" | grep -q '"protocolVersion"'; then
echo "Smoke test passed: MCP server responds correctly"
else
echo "Smoke test FAILED: no valid MCP response"
echo "Response was: $RESPONSE"
exit 1
fi
- name: Upload coverage
uses: codecov/codecov-action@v5
with:
file: src/mcp/coverage.out
fail_ci_if_error: false
continue-on-error: true
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: true
- uses: actions/setup-go@v6
with:
go-version: '1.25'
cache-dependency-path: src/mcp/go.sum
- uses: golangci/golangci-lint-action@v7
with:
version: v2.11.4
working-directory: src/mcp
args: --timeout=5m