Refactor CI workflows to implement caching for npm dependencies across API Docs and frontend services, improving build efficiency
Some checks failed
API Docs (Node.js Express) / test (18) (push) Failing after 4m55s
API Docs (Node.js Express) / test (16) (push) Failing after 4m58s
LabFusion CI/CD Pipeline / service-adapters (push) Failing after 5m3s
LabFusion CI/CD Pipeline / frontend (push) Failing after 4m54s
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 33s
Docker Build and Push / security-scan (push) Has been skipped
Frontend (React) / test (16) (push) Failing after 5m0s
API Docs (Node.js Express) / test (20) (push) Failing after 38s
API Docs (Node.js Express) / build (push) Has been skipped
API Docs (Node.js Express) / security (push) Has been skipped
LabFusion CI/CD Pipeline / api-gateway (push) Failing after 4m51s
LabFusion CI/CD Pipeline / api-docs (push) Failing after 4m50s
Frontend (React) / build (push) Has been cancelled
Frontend (React) / lighthouse (push) Has been cancelled
Frontend (React) / test (20) (push) Has been cancelled
Frontend (React) / security (push) Has been cancelled
Integration Tests / integration-tests (push) Has been cancelled
Integration Tests / performance-tests (push) Has been cancelled
Frontend (React) / test (18) (push) Has been cancelled
Docker Build and Push / deploy-staging (push) Has been skipped
Docker Build and Push / deploy-production (push) Has been skipped

This commit is contained in:
glenn schrooyen
2025-09-12 01:45:13 +02:00
parent 4ca0fe02da
commit 17fd88871a
3 changed files with 54 additions and 12 deletions

View File

@@ -33,8 +33,15 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Cache npm dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('frontend/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node-version }}-
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
@@ -88,8 +95,15 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Cache npm dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-18-${{ hashFiles('frontend/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-18-
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci