fix(ci): move all test jobs to VPS runner - NAS HDD too slow
Deploy Dashboard (Dev) / Frontend Tests (push) Failing after 13m0s
Deploy Dashboard (Dev) / Backend Tests (push) Failing after 14m11s
Deploy Dashboard (Dev) / Build Dev Image (push) Has been skipped
Deploy Dashboard (Dev) / Deploy to Dev (push) Has been skipped

NAS is using 4.7GB swap causing tests to hang in D state for 20+ min. VPS has SSD and plenty of RAM - tests complete in ~1-2 min there.
This commit is contained in:
Gan, Jimmy
2026-06-04 18:16:36 +08:00
parent c4e9608e9d
commit 12a015e915
+10 -6
View File
@@ -14,7 +14,7 @@ concurrency:
jobs:
backend-tests:
name: Backend Tests
runs-on: ubuntu-latest
runs-on: vps
env:
SECRET_KEY: test-secret-key-for-ci-environment-32chars-minimum
@@ -22,7 +22,7 @@ jobs:
- name: Checkout repository
run: |
if [ ! -d .git ]; then
git clone --depth=1 "http://172.21.0.1:3300/${GITHUB_REPOSITORY}.git" .
git clone --depth=1 "http://100.78.131.124:3300/${GITHUB_REPOSITORY}.git" .
fi
- name: Setup Python
@@ -97,13 +97,13 @@ jobs:
frontend-tests:
name: Frontend Tests
runs-on: ubuntu-latest
runs-on: vps
steps:
- name: Checkout repository
run: |
if [ ! -d .git ]; then
git clone --depth=1 "http://172.21.0.1:3300/${GITHUB_REPOSITORY}.git" .
git clone --depth=1 "http://100.78.131.124:3300/${GITHUB_REPOSITORY}.git" .
fi
- name: Setup Node.js
@@ -173,7 +173,11 @@ jobs:
run: |
set -e
echo "Building on VPS (SSD)..."
podman build -t nas-dashboard-dev:latest dashboard/
CACHE_ARG=""
if podman image exists nas-dashboard-dev:latest 2>/dev/null; then
CACHE_ARG="--cache-from nas-dashboard-dev:latest"
fi
podman build $CACHE_ARG -t nas-dashboard-dev:latest dashboard/
- name: Transfer image to NAS
run: |
@@ -199,7 +203,7 @@ jobs:
- name: Checkout repository
run: |
if [ ! -d .git ]; then
git clone --depth=1 "http://172.21.0.1:3300/${GITHUB_REPOSITORY}.git" .
git clone --depth=1 "http://gitea:3000/${GITHUB_REPOSITORY}.git" .
fi
- name: Sync runtime compose file