From 1d169b12288fd987fdeed7a21632588f12a5adec Mon Sep 17 00:00:00 2001 From: Lars Stommer Date: Tue, 17 Mar 2026 12:58:56 +0100 Subject: [PATCH] ci: fix test workflow - use local Node.js --- .gitea/workflows/test.yml | 37 ++++++++++++++----------------------- 1 file changed, 14 insertions(+), 23 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index afaca64..9ff0e60 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -3,31 +3,22 @@ name: Build Test on: push: branches: [main, develop] - pull_request: - branches: [main] jobs: - build-frontend: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: '20' - - name: Install & Build - working-directory: ./frontend - run: | - npm install - npm run build - - name: Check build output - run: ls -la frontend/dist/ - lint-backend: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: '3.12' - - name: Check syntax - run: python3 -m py_compile backend/main.py && echo "✓ Backend syntax OK" + - name: Check backend syntax + run: | + python3 -m py_compile /home/lars/docker/bodytrack/backend/main.py + echo "✓ Backend syntax OK" + + build-frontend: + runs-on: ubuntu-latest + steps: + - name: Build frontend + run: | + cd /home/lars/docker/bodytrack/frontend + npm install + npm run build + echo "✓ Frontend build OK"