fix: CI — run tests in Docker containers (runner has no JDK/Node)
Deploy to TrueNAS / deploy (push) Failing after 38s
Deploy to TrueNAS / deploy (push) Failing after 38s
This commit is contained in:
@@ -41,15 +41,20 @@ jobs:
|
|||||||
- name: Run backend tests
|
- name: Run backend tests
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
docker run --rm \
|
||||||
|
-v "$(pwd)":/workspace \
|
||||||
|
-w /workspace \
|
||||||
|
maven:3.9-eclipse-temurin-17 \
|
||||||
mvn test --batch-mode -f pom.xml
|
mvn test --batch-mode -f pom.xml
|
||||||
|
|
||||||
- name: Frontend type check
|
- name: Frontend lint check
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
cd cannamanage-frontend
|
docker run --rm \
|
||||||
corepack enable
|
-v "$(pwd)/cannamanage-frontend":/app \
|
||||||
pnpm install --frozen-lockfile
|
-w /app \
|
||||||
pnpm run lint
|
node:22-slim \
|
||||||
|
sh -c "corepack enable && corepack prepare pnpm@10.8.1 --activate && pnpm install --frozen-lockfile && pnpm run lint"
|
||||||
|
|
||||||
- name: Build images
|
- name: Build images
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user