-
Notifications
You must be signed in to change notification settings - Fork 1
94 lines (77 loc) · 2.62 KB
/
Copy pathci.yml
File metadata and controls
94 lines (77 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# .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