Skip to content

Commit 90dd494

Browse files
fix(ci): install system dependencies and fix Playwright port conflict
This commit fixes two CI failures: 1. Install required system dependencies (libgtk-3-dev, libwebkit2gtk-4.0-dev, etc.) for Rust builds on Ubuntu. These are needed by Tauri's GTK dependencies. 2. Remove manual dev server start from Playwright job. The Playwright config already has webServer configured to start/stop the dev server automatically, so the manual start was causing port conflicts. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent a9d4b8a commit 90dd494

1 file changed

Lines changed: 20 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ jobs:
3232
- name: Install Playwright browsers
3333
run: npx playwright install --with-deps chromium
3434

35-
- name: Start dev server in background
36-
working-directory: ./app/frontend
37-
run: |
38-
npm run dev &
39-
npx wait-on http://localhost:5173 --timeout 120000
40-
4135
- name: Run Playwright tests
4236
working-directory: ./app/frontend
4337
run: npx playwright test
@@ -132,6 +126,16 @@ jobs:
132126
- name: Setup Rust
133127
uses: dtolnay/rust-toolchain@stable
134128

129+
- name: Install system dependencies
130+
run: |
131+
sudo apt-get update
132+
sudo apt-get install -y \
133+
libgtk-3-dev \
134+
libwebkit2gtk-4.0-dev \
135+
libayatana-appindicator3-dev \
136+
librsvg2-dev \
137+
libasound2-dev
138+
135139
- name: Cache Rust dependencies
136140
uses: Swatinem/rust-cache@v2
137141
with:
@@ -176,6 +180,16 @@ jobs:
176180
- name: Setup Rust
177181
uses: dtolnay/rust-toolchain@stable
178182

183+
- name: Install system dependencies
184+
run: |
185+
sudo apt-get update
186+
sudo apt-get install -y \
187+
libgtk-3-dev \
188+
libwebkit2gtk-4.0-dev \
189+
libayatana-appindicator3-dev \
190+
librsvg2-dev \
191+
libasound2-dev
192+
179193
- name: Cache Rust dependencies
180194
uses: Swatinem/rust-cache@v2
181195
with:

0 commit comments

Comments
 (0)