feature/embbed-frontend #7
23
.github/workflows/test.yaml
vendored
23
.github/workflows/test.yaml
vendored
@@ -42,13 +42,11 @@ jobs:
|
|||||||
- name: Setup Rust, checkout and restore caches
|
- name: Setup Rust, checkout and restore caches
|
||||||
uses: ./.github/actions/setup-rust
|
uses: ./.github/actions/setup-rust
|
||||||
|
|
||||||
- name: Restore frontend build cache
|
- name: Download frontend build artifact
|
||||||
uses: actions/cache@v4
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
name: frontend-build
|
||||||
path: apps/nxmesh-frontend/dist
|
path: apps/nxmesh-frontend/dist
|
||||||
key: frontend-build-${{ runner.os }}-run-${{ github.run_id }}
|
|
||||||
restore-keys: |
|
|
||||||
frontend-build-${{ runner.os }}-
|
|
||||||
|
|
||||||
- name: Copy frontend build to expected location
|
- name: Copy frontend build to expected location
|
||||||
run: |
|
run: |
|
||||||
@@ -80,13 +78,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
components: clippy, rustfmt
|
components: clippy, rustfmt
|
||||||
|
|
||||||
- name: Restore frontend build cache
|
- name: Download frontend build artifact
|
||||||
uses: actions/cache@v4
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
name: frontend-build
|
||||||
path: apps/nxmesh-frontend/dist
|
path: apps/nxmesh-frontend/dist
|
||||||
key: frontend-build-${{ runner.os }}-run-${{ github.run_id }}
|
|
||||||
restore-keys: |
|
|
||||||
frontend-build-${{ runner.os }}-
|
|
||||||
|
|
||||||
- name: Copy frontend build to expected location
|
- name: Copy frontend build to expected location
|
||||||
run: |
|
run: |
|
||||||
@@ -160,9 +156,8 @@ jobs:
|
|||||||
cd apps/nxmesh-frontend
|
cd apps/nxmesh-frontend
|
||||||
bun run build
|
bun run build
|
||||||
|
|
||||||
- name: Cache frontend build
|
- name: Upload frontend build artifact
|
||||||
uses: actions/cache@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
name: frontend-build
|
||||||
path: apps/nxmesh-frontend/dist
|
path: apps/nxmesh-frontend/dist
|
||||||
key: frontend-build-${{ runner.os }}-run-${{ github.run_id }}
|
|
||||||
# IGNORE restore-keys
|
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ mod tests {
|
|||||||
async fn test_asset() {
|
async fn test_asset() {
|
||||||
// list all embedded assets for debugging
|
// list all embedded assets for debugging
|
||||||
let assets = FrontendAssets::iter().collect::<Vec<_>>();
|
let assets = FrontendAssets::iter().collect::<Vec<_>>();
|
||||||
|
println!("Embedded assets: {:?}", assets);
|
||||||
assert!(
|
assert!(
|
||||||
!assets.is_empty(),
|
!assets.is_empty(),
|
||||||
"Expected to find embedded assets, but found none"
|
"Expected to find embedded assets, but found none"
|
||||||
|
|||||||
Reference in New Issue
Block a user