From 2224afd2ea4b5fb3abc0d1fb8d766fa4acd6b0aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Fri, 6 Nov 2026 19:47:11 +0500 Subject: [PATCH] release: build the frontend before the tests tauri::generate_context! needs ../dist. The tests run before tauri-action builds the frontend, so a run without a warm target cache cannot compile the app (seen on preview/modules-v2, run 42224568581). Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 62e5c33..d53e7ed 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -69,6 +69,8 @@ jobs: with: node-version: 22 - run: npm ci + # tauri::generate_context! needs ../dist; without a warm target cache the tests do not compile without it. + - run: npm run build - name: Tests run: cargo test --workspace --locked -- --test-threads=1 - run: node --experimental-strip-types --test tools/*.test.mjs