Skip to content

Merge pull request #117 from usherlabs/fix/market-capture-fail-closed #334

Merge pull request #117 from usherlabs/fix/market-capture-fail-closed

Merge pull request #117 from usherlabs/fix/market-capture-fail-closed #334

Workflow file for this run

# .github/workflows/ci.yml
name: CI
on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
jobs:
test:
runs-on: ubuntu-latest
services:
clickhouse:
image: clickhouse/clickhouse-server:24.8
env:
CLICKHOUSE_USER: default
CLICKHOUSE_PASSWORD: integration-test
ports:
- 8123:8123
options: >-
--health-cmd "wget --no-verbose --tries=1 --spider http://localhost:8123/ping || exit 1"
--health-interval 5s
--health-timeout 3s
--health-retries 20
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.3.12
- name: Install dependencies
run: bun install
- name: Generate protobuf types
run: bun run proto-gen
- name: Run repository checks
run: |
bun run check
bun run check:server-lines
bun run typecheck:sidecar
- name: Resolve ClickHouse integration endpoint
run: |
for host in localhost clickhouse; do
if curl --fail --silent --max-time 2 "http://${host}:8123/ping" >/dev/null; then
echo "CLICKHOUSE_TEST_URL=http://${host}:8123" >> "$GITHUB_ENV"
exit 0
fi
done
echo "ClickHouse integration service is unreachable" >&2
exit 1
- name: Run normal tests
run: bun run test
env:
CLICKHOUSE_REQUIRED: "1"
CLICKHOUSE_USER: default
CLICKHOUSE_PASSWORD: integration-test
- name: Cache pinned ClickHouse Local
uses: actions/cache@v4
with:
path: .cache/clickhouse-local
key: clickhouse-local-25.8.24.21-linux-amd64-a687eff77c58afbe
- name: Run required archive E2E regression
run: bun run test:e2e:archive
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.11.2"
- name: Run canonical checksum fixture verification
run: uv run --project research/python --extra dev pytest research/python/tests/test_canonical_capture_fixture.py -q
- name: Validate current OpenSpec state
run: bunx @fission-ai/openspec@1.3.1 validate --all --strict
# Gate PRs on the same strict build the publish workflow runs on tag push
# (dts-bundle-generator + strict tsc). Without this, develop can merge code
# that only fails at publish time, blocking releases.
- name: Build project
run: bun run build