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
|
||||
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: |
|
||||
|
||||
Reference in New Issue
Block a user