Enhance API Docs CI workflow by adding verification steps for dependencies and ESLint installation; update package-lock.json to include new ESLint and testing dependencies
Some checks failed
API Docs (Node.js Express) / test (16) (push) Failing after 5m17s
API Docs (Node.js Express) / test (18) (push) Failing after 5m14s
API Docs (Node.js Express) / test (20) (push) Failing after 55s
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 / service-adapters (push) Failing after 5m1s
LabFusion CI/CD Pipeline / api-docs (push) Failing after 5m10s
LabFusion CI/CD Pipeline / frontend (push) Failing after 5m59s
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
Integration Tests / integration-tests (push) Failing after 1m55s
Integration Tests / performance-tests (push) Has been skipped
Docker Build and Push / deploy-staging (push) Has been skipped
Docker Build and Push / deploy-production (push) Has been skipped
Some checks failed
API Docs (Node.js Express) / test (16) (push) Failing after 5m17s
API Docs (Node.js Express) / test (18) (push) Failing after 5m14s
API Docs (Node.js Express) / test (20) (push) Failing after 55s
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 / service-adapters (push) Failing after 5m1s
LabFusion CI/CD Pipeline / api-docs (push) Failing after 5m10s
LabFusion CI/CD Pipeline / frontend (push) Failing after 5m59s
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
Integration Tests / integration-tests (push) Failing after 1m55s
Integration Tests / performance-tests (push) Has been skipped
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:
@@ -46,14 +46,30 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
if [ -f package-lock.json ]; then
|
||||
npm ci
|
||||
npm ci || npm install
|
||||
else
|
||||
npm install
|
||||
fi
|
||||
|
||||
- name: Verify dependencies installation
|
||||
run: |
|
||||
if [ ! -d "node_modules" ]; then
|
||||
echo "Dependencies not installed, running npm install..."
|
||||
npm install
|
||||
fi
|
||||
echo "Dependencies verified successfully"
|
||||
|
||||
- name: Add node_modules/.bin to PATH
|
||||
run: echo "$(pwd)/node_modules/.bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Verify ESLint installation
|
||||
run: |
|
||||
if ! npx eslint --version > /dev/null 2>&1; then
|
||||
echo "ESLint not found, installing..."
|
||||
npm install eslint eslint-config-standard eslint-plugin-import eslint-plugin-node eslint-plugin-promise --save-dev
|
||||
fi
|
||||
echo "ESLint verified successfully"
|
||||
|
||||
- name: Run linting
|
||||
run: |
|
||||
npx eslint . --ext .js
|
||||
@@ -116,14 +132,30 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
if [ -f package-lock.json ]; then
|
||||
npm ci
|
||||
npm ci || npm install
|
||||
else
|
||||
npm install
|
||||
fi
|
||||
|
||||
- name: Verify dependencies installation
|
||||
run: |
|
||||
if [ ! -d "node_modules" ]; then
|
||||
echo "Dependencies not installed, running npm install..."
|
||||
npm install
|
||||
fi
|
||||
echo "Dependencies verified successfully"
|
||||
|
||||
- name: Add node_modules/.bin to PATH
|
||||
run: echo "$(pwd)/node_modules/.bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Verify ESLint installation
|
||||
run: |
|
||||
if ! npx eslint --version > /dev/null 2>&1; then
|
||||
echo "ESLint not found, installing..."
|
||||
npm install eslint eslint-config-standard eslint-plugin-import eslint-plugin-node eslint-plugin-promise --save-dev
|
||||
fi
|
||||
echo "ESLint verified successfully"
|
||||
|
||||
- name: Build application
|
||||
run: npm run build
|
||||
|
||||
|
||||
6372
services/api-docs/package-lock.json
generated
6372
services/api-docs/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user