Skip to content

Commit

Permalink
[WF:test] Build frontend before testing to avoid RustEmbed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
m4heshd committed Apr 15, 2024
1 parent 7becf0e commit addaf93
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ jobs:
steps:
# Checkout repo
- uses: actions/checkout@v4
# Setup Node.js
- uses: actions/setup-node@v4
with:
node-version: 20
# Install npm deps
- name: Install npm dependencies
run: npm install --no-audit
# Build Vue frontend
- name: Build frontend
run: npm run build
# Set up Rust and Cargo
- name: Set up Rust toolchain
uses: dtolnay/rust-toolchain@v1
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"dev:backend": "cargo run --color=always --bin ufc-ripper",
"dev": "vite",
"test": "npm run build && cargo test",
"build:backend:win32": "npm run build && cargo build-win32",
"build:backend:linux": "npm run build && cargo build-linux",
"build": "vite build",
Expand Down

0 comments on commit addaf93

Please sign in to comment.