feature/embbed-frontend #7
23
.github/workflows/test.yaml
vendored
23
.github/workflows/test.yaml
vendored
@@ -42,11 +42,13 @@ 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: Download frontend build artifact
|
- name: Restore frontend build cache
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/cache@v4
|
||||||
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: |
|
||||||
@@ -78,11 +80,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
components: clippy, rustfmt
|
components: clippy, rustfmt
|
||||||
|
|
||||||
- name: Download frontend build artifact
|
- name: Restore frontend build cache
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/cache@v4
|
||||||
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: |
|
||||||
@@ -156,8 +160,9 @@ jobs:
|
|||||||
cd apps/nxmesh-frontend
|
cd apps/nxmesh-frontend
|
||||||
bun run build
|
bun run build
|
||||||
|
|
||||||
- name: Upload frontend build artifact
|
- name: Cache frontend build
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/cache@v4
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user