fix: CI — run tests in Docker containers (runner has no JDK/Node)
Deploy to TrueNAS / deploy (push) Failing after 38s

This commit is contained in:
Patrick Plate
2026-06-18 16:11:32 +02:00
parent f9a87efb7a
commit 6f5e886bd6
+11 -6
View File
@@ -41,15 +41,20 @@ jobs:
- name: Run backend tests
run: |
set -euo pipefail
mvn test --batch-mode -f pom.xml
docker run --rm \
-v "$(pwd)":/workspace \
-w /workspace \
maven:3.9-eclipse-temurin-17 \
mvn test --batch-mode -f pom.xml
- name: Frontend type check
- name: Frontend lint check
run: |
set -euo pipefail
cd cannamanage-frontend
corepack enable
pnpm install --frozen-lockfile
pnpm run lint
docker run --rm \
-v "$(pwd)/cannamanage-frontend":/app \
-w /app \
node:22-slim \
sh -c "corepack enable && corepack prepare pnpm@10.8.1 --activate && pnpm install --frozen-lockfile && pnpm run lint"
- name: Build images
run: |