-
Notifications
You must be signed in to change notification settings - Fork 0
120 lines (113 loc) · 3.06 KB
/
ci.yml
File metadata and controls
120 lines (113 loc) · 3.06 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.15.9
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm codegen:check
- run: pnpm typecheck
- run: pnpm lint
- run: pnpm format:check
- run: pnpm test
- run: pnpm build
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.15.9
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- uses: ./.github/actions/greptimedb
with:
container-name: greptimedb
- run: pnpm test:integration
env:
GREPTIMEDB_ENDPOINT: localhost:4001
GREPTIMEDB_HTTP: http://127.0.0.1:4000
- name: Dump GreptimeDB logs on failure
if: failure()
run: docker logs greptimedb
- name: Stop GreptimeDB
if: always()
run: docker rm -f greptimedb || true
bun-smoke:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.15.9
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: pnpm install --frozen-lockfile
- uses: ./.github/actions/greptimedb
with:
container-name: greptimedb-bun
- run: bun run scripts/smoke.ts
env:
GREPTIMEDB_ENDPOINT: localhost:4001
GREPTIMEDB_HTTP: http://127.0.0.1:4000
- name: Dump GreptimeDB logs on failure
if: failure()
run: docker logs greptimedb-bun
- name: Stop GreptimeDB
if: always()
run: docker rm -f greptimedb-bun || true
deno-smoke:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.15.9
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- run: pnpm install --frozen-lockfile
- uses: ./.github/actions/greptimedb
with:
container-name: greptimedb-deno
- run: deno run -A scripts/smoke.ts
env:
GREPTIMEDB_ENDPOINT: localhost:4001
GREPTIMEDB_HTTP: http://127.0.0.1:4000
- name: Dump GreptimeDB logs on failure
if: failure()
run: docker logs greptimedb-deno
- name: Stop GreptimeDB
if: always()
run: docker rm -f greptimedb-deno || true