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