Skip to content

feat: add multi-source drain/MCP aggregation with dedup and source la… #15

feat: add multi-source drain/MCP aggregation with dedup and source la…

feat: add multi-source drain/MCP aggregation with dedup and source la… #15

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build
run: go build ./...
- name: Test
run: go test ./... -race -count=1
integration-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Start GreptimeDB
run: |
docker run -d --name greptimedb \
-p 4001:4001 -p 4002:4002 \
greptime/greptimedb:latest standalone start \
--rpc-bind-addr 0.0.0.0:4001 \
--mysql-addr 0.0.0.0:4002
- name: Wait for GreptimeDB
run: |
for i in $(seq 1 30); do
if nc -z 127.0.0.1 4002 2>/dev/null; then
echo "GreptimeDB is ready"
exit 0
fi
echo "Waiting for GreptimeDB... ($i/30)"
sleep 2
done
echo "GreptimeDB failed to start"
docker logs greptimedb
exit 1
- name: Integration Test (GreptimeDB)
run: go test -tags=integration -v ./internal/store/greptimedb/
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest
- name: Lint
run: golangci-lint run ./...