feature/embbed-frontend #7
54
.github/workflows/test.yaml
vendored
54
.github/workflows/test.yaml
vendored
@@ -50,14 +50,27 @@ jobs:
|
||||
restore-keys: |
|
||||
frontend-build-${{ runner.os }}-
|
||||
|
||||
- name: Copy frontend build to expected location
|
||||
run: |
|
||||
# unlink frontend-dist
|
||||
rm -f apps/nxmesh-master/frontend-dist || true
|
||||
rm -rf apps/nxmesh-master/frontend-dist || true
|
||||
cp -r apps/nxmesh-frontend/dist apps/nxmesh-master/frontend-dist
|
||||
# TODO: uncomment until artifact hanlding fixed in gitea
|
||||
# - name: Download frontend build artifact
|
||||
# uses: actions/download-artifact@v4
|
||||
# with:
|
||||
# name: frontend-dist
|
||||
# path: apps/nxmesh-frontend/dist
|
||||
|
||||
ls -la apps/nxmesh-master/frontend-dist
|
||||
# - name: Copy frontend build to expected location
|
||||
# run: |
|
||||
# # unlink frontend-dist
|
||||
# rm -f apps/nxmesh-master/frontend-dist || true
|
||||
# rm -rf apps/nxmesh-master/frontend-dist || true
|
||||
# cp -r apps/nxmesh-frontend/dist apps/nxmesh-master/frontend-dist
|
||||
|
||||
# ls -la apps/nxmesh-master/frontend-dist
|
||||
|
||||
- name: Create dummy build artifacts
|
||||
run: |
|
||||
rm -f apps/nxmesh-master/frontend-dist || true
|
||||
mkdir -p apps/nxmesh-master/frontend-dist
|
||||
echo "<html><body><h1>Dummy Build</h1></body></html>" > apps/nxmesh-master/frontend-dist/index.html
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test --all-features -- --show-output
|
||||
@@ -88,12 +101,25 @@ jobs:
|
||||
restore-keys: |
|
||||
frontend-build-${{ runner.os }}-
|
||||
|
||||
- name: Copy frontend build to expected location
|
||||
# TODO: uncomment until artifact hanlding fixed in gitea
|
||||
# - name: Download frontend build artifact
|
||||
# uses: actions/download-artifact@v4
|
||||
# with:
|
||||
# name: frontend-dist
|
||||
# path: apps/nxmesh-frontend/dist
|
||||
|
||||
# - name: Copy frontend build to expected location
|
||||
# run: |
|
||||
# # unlink frontend-dist
|
||||
# rm -f apps/nxmesh-master/frontend-dist || true
|
||||
# rm -rf apps/nxmesh-master/frontend-dist || true
|
||||
# cp -r apps/nxmesh-frontend/dist apps/nxmesh-master/frontend-dist
|
||||
|
||||
- name: Create dummy build artifacts
|
||||
run: |
|
||||
# unlink frontend-dist
|
||||
rm -f apps/nxmesh-master/frontend-dist || true
|
||||
rm -rf apps/nxmesh-master/frontend-dist || true
|
||||
cp -r apps/nxmesh-frontend/dist apps/nxmesh-master/frontend-dist
|
||||
mkdir -p apps/nxmesh-master/frontend-dist
|
||||
echo "<html><body><h1>Dummy Build</h1></body></html>" > apps/nxmesh-master/frontend-dist/index.html
|
||||
|
||||
- name: Run clippy
|
||||
run: cargo clippy --all-features
|
||||
@@ -166,3 +192,9 @@ jobs:
|
||||
path: apps/nxmesh-frontend/dist
|
||||
key: frontend-build-${{ runner.os }}-run-${{ github.run_id }}
|
||||
# IGNORE restore-keys
|
||||
# TODO: uncomment until artifact hanlding fixed in gitea
|
||||
# - name: Upload frontend build artifact
|
||||
# uses: actions/upload-artifact@v4
|
||||
# with:
|
||||
# name: frontend-dist
|
||||
# path: apps/nxmesh-frontend/dist
|
||||
|
||||
Reference in New Issue
Block a user