diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 240aef3..dbd4e16 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -59,21 +59,25 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Install dependencies + - name: Install dependencies and run linting run: | # Copy frontend to /tmp to avoid noexec issues with DynamicUser cp -r frontend /tmp/frontend-build + # Install dependencies in executable location nix develop --quiet --command bash -c " cd /tmp/frontend-build npm ci --prefer-offline --no-audit + + # Run linting from the executable location + echo '🔍 Linting frontend TypeScript/Svelte code...' + npm run lint + npx prettier --check src/ + npm run check " - # Copy node_modules back to workspace - cp -r /tmp/frontend-build/node_modules frontend/ + + # Cleanup rm -rf /tmp/frontend-build - - - name: Run frontend linting - run: nix run .#lint-frontend # Nix flake check (needs Nix) nix-check: