Update CI workflows to use Maven wrapper for consistency and improve npm dependency installation logic; enhance progress tracking documentation
Some checks failed
API Docs (Node.js Express) / test (16) (push) Failing after 5m3s
API Docs (Node.js Express) / test (18) (push) Failing after 5m3s
API Docs (Node.js Express) / test (20) (push) Failing after 43s
API Docs (Node.js Express) / build (push) Has been skipped
API Docs (Node.js Express) / security (push) Has been skipped
API Gateway (Java Spring Boot) / test (17) (push) Failing after 4m55s
API Gateway (Java Spring Boot) / test (21) (push) Failing after 4m55s
API Gateway (Java Spring Boot) / build (push) Has been skipped
API Gateway (Java Spring Boot) / security (push) Has been skipped
LabFusion CI/CD Pipeline / api-gateway (push) Failing after 4m53s
LabFusion CI/CD Pipeline / service-adapters (push) Failing after 4m58s
LabFusion CI/CD Pipeline / api-docs (push) Failing after 4m56s
LabFusion CI/CD Pipeline / frontend (push) Failing after 5m58s
LabFusion CI/CD Pipeline / integration-tests (push) Has been skipped
LabFusion CI/CD Pipeline / security-scan (push) Has been skipped
Docker Build and Push / build-and-push (push) Failing after 32s
Docker Build and Push / security-scan (push) Has been skipped
Frontend (React) / test (16) (push) Failing after 6m3s
Frontend (React) / test (18) (push) Failing after 6m6s
Frontend (React) / test (20) (push) Failing after 1m37s
Frontend (React) / build (push) Has been skipped
Frontend (React) / security (push) Has been skipped
Integration Tests / integration-tests (push) Failing after 23s
Docker Build and Push / deploy-staging (push) Has been skipped
Integration Tests / performance-tests (push) Has been skipped
Docker Build and Push / deploy-production (push) Has been skipped
Frontend (React) / lighthouse (push) Has been skipped

This commit is contained in:
glenn schrooyen
2025-09-12 02:22:16 +02:00
parent 17fd88871a
commit 6cdb4df779
14 changed files with 2232 additions and 90 deletions

View File

@@ -44,7 +44,12 @@ jobs:
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
run: |
if [ -f package-lock.json ]; then
npm ci
else
npm install
fi
- name: Run linting
run: |
@@ -106,7 +111,12 @@ jobs:
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
run: |
if [ -f package-lock.json ]; then
npm ci
else
npm install
fi
- name: Build application
run: npm run build

View File

@@ -34,6 +34,10 @@ jobs:
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: maven
- name: Verify Maven installation
run: ./mvnw --version
- name: Cache Maven dependencies
uses: actions/cache@v4
@@ -45,13 +49,13 @@ jobs:
${{ runner.os }}-m2-
- name: Validate POM
run: mvn validate
run: ./mvnw validate
- name: Compile code
run: mvn compile
run: ./mvnw compile
- name: Run unit tests
run: mvn test
run: ./mvnw test
- name: Generate test report
uses: dorny/test-reporter@v1
@@ -63,12 +67,12 @@ jobs:
- name: Run code quality checks
run: |
mvn spotbugs:check
mvn checkstyle:check
mvn pmd:check
./mvnw spotbugs:check
./mvnw checkstyle:check
./mvnw pmd:check
- name: Generate code coverage
run: mvn jacoco:report
run: ./mvnw jacoco:report
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
@@ -93,6 +97,10 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Verify Maven installation
run: ./mvnw --version
- name: Cache Maven dependencies
uses: actions/cache@v4
@@ -102,7 +110,7 @@ jobs:
restore-keys: ${{ runner.os }}-m2
- name: Build application
run: mvn clean package -DskipTests
run: ./mvnw clean package -DskipTests
- name: Build Docker image (test only)
run: docker build -t api-gateway:test .

View File

@@ -123,7 +123,12 @@ jobs:
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
run: |
if [ -f package-lock.json ]; then
npm ci
else
npm install
fi
- name: Run linting
run: npm run lint
@@ -163,7 +168,12 @@ jobs:
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
run: |
if [ -f package-lock.json ]; then
npm ci
else
npm install
fi
- name: Run linting
run: npm run lint

View File

@@ -44,7 +44,12 @@ jobs:
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
run: |
if [ -f package-lock.json ]; then
npm ci
else
npm install
fi
- name: Run linting
run: |
@@ -106,7 +111,12 @@ jobs:
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
run: |
if [ -f package-lock.json ]; then
npm ci
else
npm install
fi
- name: Build application
run: |