Skip to content

Commit a8f4767

Browse files
authored
fix(ci): resolve failing CI jobs (#31)
1 parent f36e3ef commit a8f4767

4 files changed

Lines changed: 47 additions & 28 deletions

File tree

.github/actions/setup-playwright/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ runs:
1919
run: bun install --frozen-lockfile
2020
shell: bash
2121

22+
# Run from apps/host so bunx resolves the workspace-pinned playwright
23+
# (@playwright/test in apps/host) instead of fetching the latest from the
24+
# registry. A version mismatch installs the wrong browser build and the
25+
# tests fail at launch with "Executable doesn't exist".
2226
- name: Install Playwright browsers
27+
working-directory: apps/host
2328
run: bunx --bun playwright install --with-deps chromium
2429
shell: bash

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ jobs:
5050
bun-version: "1.3.13"
5151

5252
- name: Build
53+
env:
54+
# Required build-time config (see packages/config/src/network.ts).
55+
# Without it the host shell throws on boot and never mounts the
56+
# protocol/app iframes, so every test times out. deploy.yml supplies
57+
# this from repo vars; the test build needs its own value.
58+
VITE_NETWORKS: paseo-next-v2,previewnet
5359
run: bunx --bun turbo run build
5460

5561
- name: Run functional tests
@@ -105,6 +111,12 @@ jobs:
105111
bun-version: "1.3.13"
106112

107113
- name: Build
114+
env:
115+
# Required build-time config (see packages/config/src/network.ts).
116+
# Without it the host shell throws on boot and never mounts the
117+
# protocol/app iframes, so every test times out. deploy.yml supplies
118+
# this from repo vars; the test build needs its own value.
119+
VITE_NETWORKS: paseo-next-v2,previewnet
108120
run: bunx --bun turbo run build
109121

110122
# Exit code 99 from playwright = Nova bot unavailable (signal raised

bun.lock

Lines changed: 28 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"smoldot": "3.2.0"
3636
},
3737
"overrides": {
38-
"smoldot": "3.2.0"
38+
"smoldot": "3.2.0",
39+
"esbuild": "^0.28.1"
3940
}
4041
}

0 commit comments

Comments
 (0)