Run build before test as well

This commit is contained in:
Gregory Schier
2024-08-09 07:29:48 -07:00
parent 6f0a0a55a4
commit c3970ba756
2 changed files with 6 additions and 3 deletions

View File

@@ -92,10 +92,13 @@ jobs:
repository: yaakapp/plugins
path: ${{ env.YAAK_PLUGINS_DIR }}
- name: Vendor things for the app
- name: build the app
run: npm run build
- name: Vendor the app
run: npm run vendor
# NOTE: vendored things need to exist for tests to build
# NOTE: Test needs vendor+build to be run
- name: Rust test
working-directory: src-tauri
run: cargo test --all

View File

@@ -11,9 +11,9 @@
"tauri": "tauri",
"dev:js": "vite dev",
"lint": "tsc && eslint . --ext .ts,.tsx",
"build": "run-p build:*",
"build:icon:release": "tauri icon design/icon.png --output ./src-tauri/icons/release",
"build:icon:dev": "tauri icon design/icon-dev.png --output ./src-tauri/icons/dev",
"build": "run-p build:*",
"build:js": "vite build",
"build:plugin-runtime": "npm run --prefix plugin-runtime build",
"vendor": "run-p vendor:*",