chore: Update Node.js version in CI workflows for API docs and frontend
Some checks failed
LabFusion CI/CD Pipeline / api-gateway (push) Failing after 31s
Docker Build and Push / build-and-push (push) Failing after 38s
LabFusion CI/CD Pipeline / service-adapters (push) Successful in 51s
LabFusion CI/CD Pipeline / frontend (push) Failing after 1m11s
LabFusion CI/CD Pipeline / api-docs (push) Successful in 1m47s
LabFusion CI/CD Pipeline / integration-tests (push) Has been skipped
Frontend (React) / test (20) (push) Failing after 1m6s
Frontend (React) / build (push) Has been skipped
Frontend (React) / lighthouse (push) Has been skipped
Integration Tests / integration-tests (push) Failing after 35s
Integration Tests / performance-tests (push) Has been skipped
API Docs (Node.js Express) / test (20) (push) Successful in 1m28s
API Docs (Node.js Express) / build (push) Successful in 36s
Some checks failed
LabFusion CI/CD Pipeline / api-gateway (push) Failing after 31s
Docker Build and Push / build-and-push (push) Failing after 38s
LabFusion CI/CD Pipeline / service-adapters (push) Successful in 51s
LabFusion CI/CD Pipeline / frontend (push) Failing after 1m11s
LabFusion CI/CD Pipeline / api-docs (push) Successful in 1m47s
LabFusion CI/CD Pipeline / integration-tests (push) Has been skipped
Frontend (React) / test (20) (push) Failing after 1m6s
Frontend (React) / build (push) Has been skipped
Frontend (React) / lighthouse (push) Has been skipped
Integration Tests / integration-tests (push) Failing after 35s
Integration Tests / performance-tests (push) Has been skipped
API Docs (Node.js Express) / test (20) (push) Successful in 1m28s
API Docs (Node.js Express) / build (push) Successful in 36s
### Summary of Changes - Changed Node.js version from `latest` and `18` to `20` in both `api-docs.yml` and `frontend.yml` CI workflows. - Adjusted caching keys to reflect the updated Node.js version for improved dependency management. - Modified test commands in the frontend workflow to include `--run` for better execution control. ### Expected Results - Ensured compatibility with the latest Node.js features and improvements. - Streamlined CI processes by aligning Node.js versions across workflows, enhancing consistency and reliability.
This commit is contained in:
@@ -25,7 +25,7 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [latest]
|
||||
node-version: [20]
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -70,7 +70,7 @@ jobs:
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
npm test -- --coverage --reporter=verbose
|
||||
npm test -- --run --coverage --reporter=verbose
|
||||
npm run test:coverage
|
||||
|
||||
- name: Send results to SonarQube
|
||||
@@ -104,18 +104,18 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Node.js latest
|
||||
- name: Set up Node.js 20
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 'latest'
|
||||
node-version: '20'
|
||||
|
||||
- name: Cache npm dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-18-${{ hashFiles('frontend/package-lock.json') }}
|
||||
key: ${{ runner.os }}-node-20-${{ hashFiles('frontend/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-18-
|
||||
${{ runner.os }}-node-20-
|
||||
${{ runner.os }}-node-
|
||||
|
||||
- name: Install dependencies
|
||||
|
||||
Reference in New Issue
Block a user