fix: replace GitHub actions with direct commands in test workflow
Run Tests / Backend Tests (push) Failing after 11m19s
Run Tests / Test Summary (push) Has been cancelled
Run Tests / Frontend Tests (push) Has been cancelled

Replace actions/checkout@v4 and actions/setup-* with direct git clone
and version checks to avoid GitHub connectivity issues.
This commit is contained in:
Gan, Jimmy
2026-04-06 21:34:13 +08:00
parent cc3c56f7df
commit 6f838b76bc
+14 -12
View File
@@ -15,14 +15,15 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
run: |
git clone --depth 1 http://gitea:3000/jimmy/nas-tools.git .
git fetch --depth 1 origin ${{ github.sha }}
git checkout ${{ github.sha }}
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
cache-dependency-path: 'dashboard/backend/requirements*.txt'
run: |
python3 --version
pip3 --version
- name: Install dependencies
run: |
@@ -51,14 +52,15 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
run: |
git clone --depth 1 http://gitea:3000/jimmy/nas-tools.git .
git fetch --depth 1 origin ${{ github.sha }}
git checkout ${{ github.sha }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: 'dashboard/frontend/package-lock.json'
run: |
node --version
npm --version
- name: Install dependencies
env: