Skip to content

Commit 2af802e

Browse files
committed
Add CI: build the mirror from source (#2)
1 parent ef68543 commit 2af802e

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# CI for the xata-cli mirror.
2+
#
3+
# Verifies the standalone mirror builds from source using only its committed
4+
# lockfile and packages published to npm — the guarantee tracked in xataio/cli#2.
5+
# The monorepo's mirror sync regenerates pnpm-lock.yaml on every push, so
6+
# `--frozen-lockfile` here proves the committed lockfile stays in sync.
7+
#
8+
# Maintained directly in this repo (.github is not part of the synced subtree).
9+
name: CI
10+
11+
on:
12+
push:
13+
branches: [main]
14+
pull_request:
15+
16+
jobs:
17+
build:
18+
name: Build from source
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- uses: pnpm/action-setup@v4
24+
with:
25+
version: 10.33.0
26+
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: 24
30+
cache: pnpm
31+
32+
- uses: oven-sh/setup-bun@v2
33+
with:
34+
bun-version: latest
35+
36+
- name: Install (frozen lockfile)
37+
run: pnpm install --frozen-lockfile
38+
39+
- name: Typecheck
40+
run: pnpm run tsc
41+
42+
- name: Build
43+
run: pnpm run build
44+
45+
- name: Unit tests
46+
run: pnpm run test-unit

0 commit comments

Comments
 (0)