Enhance API Docs CI workflow by adding node_modules/.bin to PATH and updating ESLint configuration; include additional ESLint and testing dependencies in package.json
Some checks failed
API Docs (Node.js Express) / test (16) (push) Failing after 5m11s
API Docs (Node.js Express) / test (18) (push) Failing after 5m16s
API Docs (Node.js Express) / test (20) (push) Failing after 53s
API Docs (Node.js Express) / build (push) Has been skipped
API Docs (Node.js Express) / security (push) Has been skipped
LabFusion CI/CD Pipeline / service-adapters (push) Has been cancelled
LabFusion CI/CD Pipeline / api-docs (push) Has been cancelled
LabFusion CI/CD Pipeline / api-gateway (push) Has been cancelled
LabFusion CI/CD Pipeline / integration-tests (push) Has been cancelled
LabFusion CI/CD Pipeline / security-scan (push) Has been cancelled
Docker Build and Push / build-and-push (push) Has been cancelled
Docker Build and Push / security-scan (push) Has been cancelled
Docker Build and Push / deploy-staging (push) Has been cancelled
Docker Build and Push / deploy-production (push) Has been cancelled
Integration Tests / integration-tests (push) Has been cancelled
Integration Tests / performance-tests (push) Has been cancelled
LabFusion CI/CD Pipeline / frontend (push) Has been cancelled
Some checks failed
API Docs (Node.js Express) / test (16) (push) Failing after 5m11s
API Docs (Node.js Express) / test (18) (push) Failing after 5m16s
API Docs (Node.js Express) / test (20) (push) Failing after 53s
API Docs (Node.js Express) / build (push) Has been skipped
API Docs (Node.js Express) / security (push) Has been skipped
LabFusion CI/CD Pipeline / service-adapters (push) Has been cancelled
LabFusion CI/CD Pipeline / api-docs (push) Has been cancelled
LabFusion CI/CD Pipeline / api-gateway (push) Has been cancelled
LabFusion CI/CD Pipeline / integration-tests (push) Has been cancelled
LabFusion CI/CD Pipeline / security-scan (push) Has been cancelled
Docker Build and Push / build-and-push (push) Has been cancelled
Docker Build and Push / security-scan (push) Has been cancelled
Docker Build and Push / deploy-staging (push) Has been cancelled
Docker Build and Push / deploy-production (push) Has been cancelled
Integration Tests / integration-tests (push) Has been cancelled
Integration Tests / performance-tests (push) Has been cancelled
LabFusion CI/CD Pipeline / frontend (push) Has been cancelled
This commit is contained in:
@@ -51,10 +51,13 @@ jobs:
|
|||||||
npm install
|
npm install
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Add node_modules/.bin to PATH
|
||||||
|
run: echo "$(pwd)/node_modules/.bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Run linting
|
- name: Run linting
|
||||||
run: |
|
run: |
|
||||||
npm run lint
|
npx eslint . --ext .js
|
||||||
npm run lint:fix --dry-run
|
npx eslint . --ext .js --fix --dry-run
|
||||||
|
|
||||||
- name: Run type checking
|
- name: Run type checking
|
||||||
run: npm run type-check
|
run: npm run type-check
|
||||||
@@ -118,6 +121,9 @@ jobs:
|
|||||||
npm install
|
npm install
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Add node_modules/.bin to PATH
|
||||||
|
run: echo "$(pwd)/node_modules/.bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Build application
|
- name: Build application
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
|
|||||||
8
services/api-docs/.eslintignore
Normal file
8
services/api-docs/.eslintignore
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
node_modules/
|
||||||
|
coverage/
|
||||||
|
*.min.js
|
||||||
|
*.bundle.js
|
||||||
|
.env
|
||||||
|
.env.local
|
||||||
|
.env.production
|
||||||
|
.env.test
|
||||||
27
services/api-docs/.eslintrc.js
Normal file
27
services/api-docs/.eslintrc.js
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
module.exports = {
|
||||||
|
env: {
|
||||||
|
browser: true,
|
||||||
|
commonjs: true,
|
||||||
|
es2021: true,
|
||||||
|
node: true,
|
||||||
|
jest: true
|
||||||
|
},
|
||||||
|
extends: [
|
||||||
|
'standard'
|
||||||
|
],
|
||||||
|
parserOptions: {
|
||||||
|
ecmaVersion: 'latest',
|
||||||
|
sourceType: 'module'
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
'no-console': 'warn',
|
||||||
|
'no-unused-vars': 'warn',
|
||||||
|
'prefer-const': 'error',
|
||||||
|
'no-var': 'error',
|
||||||
|
'object-shorthand': 'error',
|
||||||
|
'prefer-template': 'error'
|
||||||
|
},
|
||||||
|
globals: {
|
||||||
|
process: 'readonly'
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -22,7 +22,14 @@
|
|||||||
"swagger-ui-express": "^5.0.0"
|
"swagger-ui-express": "^5.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"nodemon": "^3.0.2"
|
"nodemon": "^3.0.2",
|
||||||
|
"eslint": "^8.57.0",
|
||||||
|
"eslint-config-standard": "^17.1.0",
|
||||||
|
"eslint-plugin-import": "^2.29.1",
|
||||||
|
"eslint-plugin-node": "^11.1.0",
|
||||||
|
"eslint-plugin-promise": "^6.1.1",
|
||||||
|
"jest": "^29.7.0",
|
||||||
|
"supertest": "^7.0.0"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"api",
|
"api",
|
||||||
|
|||||||
Reference in New Issue
Block a user