Skip to content

Commit 325ccab

Browse files
authored
ci: Split the engine and postgres jobs (#18)
1 parent 18d591e commit 325ccab

1 file changed

Lines changed: 45 additions & 4 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,47 @@ permissions:
99
contents: read
1010

1111
jobs:
12-
test:
13-
name: Test Node ${{ matrix.node }}
12+
engine:
13+
name: Engine Node ${{ matrix.node }}
14+
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
node: [22, 24]
19+
steps:
20+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
21+
with:
22+
persist-credentials: false
23+
24+
# Package-manager setup comes first so Socket Firewall configures the
25+
# registry pnpm will actually use. The pnpm version is read from the
26+
# `packageManager` field in package.json.
27+
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
28+
29+
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
30+
with:
31+
node-version: ${{ matrix.node }}
32+
33+
# Socket Firewall is off until PUBLIC_SOCKET_FIREWALL_TOKEN reaches this
34+
# repo: with no token the action fails every run that is not a public
35+
# external-fork pull request. Uncomment to turn it back on.
36+
# - name: Setup Socket Firewall
37+
# uses: workos/setup-socket-firewall@ca93dd8aa351f54f4729fe3377a9be23c631c25d
38+
# with:
39+
# token: ${{ secrets.PUBLIC_SOCKET_FIREWALL_TOKEN }}
40+
# allow-external-fork-fallback: true
41+
42+
- name: Install
43+
run: pnpm install --frozen-lockfile
44+
45+
- name: Test
46+
run: pnpm --filter @workos/sync-engine test
47+
48+
- name: Build
49+
run: pnpm --filter @workos/sync-engine build
50+
51+
postgres:
52+
name: Postgres Node ${{ matrix.node }}
1453
runs-on: ubuntu-latest
1554
strategy:
1655
fail-fast: false
@@ -29,6 +68,8 @@ jobs:
2968
--health-timeout 5s
3069
--health-retries 10
3170
env:
71+
# Most of the suite runs on embedded PGlite; the multi-connection
72+
# regressions need a real server and skip themselves without this.
3273
TEST_DATABASE_URL: postgres://postgres@127.0.0.1:5432/postgres
3374
steps:
3475
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -57,10 +98,10 @@ jobs:
5798
run: pnpm install --frozen-lockfile
5899

59100
- name: Test
60-
run: pnpm test
101+
run: pnpm --filter @workos/sync-postgres test
61102

62103
- name: Build
63-
run: pnpm build
104+
run: pnpm --filter "@workos/sync-postgres..." build
64105

65106
# The whole lifecycle — schema, backfill, tail, reconcile, repair —
66107
# against the fake API and an embedded Postgres, through the built

0 commit comments

Comments
 (0)