Skip to content

Commit d43fae3

Browse files
committed
feat: add preparation step for Nuxt artifacts in UI tests workflow
1 parent 66e1f62 commit d43fae3

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/rust-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ jobs:
3030
librsvg2-dev \
3131
patchelf
3232
33+
- name: Stub Nuxt dist output
34+
run: |
35+
mkdir -p dist
36+
test -f dist/index.html || echo '<!doctype html><title>stub</title>' > dist/index.html
37+
working-directory: apps/desktop
38+
3339
- name: Cache Rust builds
3440
uses: swatinem/rust-cache@v2
3541
with:

.github/workflows/ui-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
run: npm install
2929
working-directory: apps/desktop
3030

31+
- name: Prepare Nuxt artifacts
32+
run: npx nuxi prepare
33+
working-directory: apps/desktop
34+
3135
- name: Run unit tests
3236
run: npm run test:unit
3337
working-directory: apps/desktop

0 commit comments

Comments
 (0)