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

This commit is contained in:
GSRN
2025-09-12 12:01:26 +02:00
parent 6cdb4df779
commit 26decca9e2
4 changed files with 51 additions and 3 deletions

View File

@@ -51,10 +51,13 @@ jobs:
npm install
fi
- name: Add node_modules/.bin to PATH
run: echo "$(pwd)/node_modules/.bin" >> $GITHUB_PATH
- name: Run linting
run: |
npm run lint
npm run lint:fix --dry-run
npx eslint . --ext .js
npx eslint . --ext .js --fix --dry-run
- name: Run type checking
run: npm run type-check
@@ -118,6 +121,9 @@ jobs:
npm install
fi
- name: Add node_modules/.bin to PATH
run: echo "$(pwd)/node_modules/.bin" >> $GITHUB_PATH
- name: Build application
run: npm run build

View File

@@ -0,0 +1,8 @@
node_modules/
coverage/
*.min.js
*.bundle.js
.env
.env.local
.env.production
.env.test

View 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'
}
}

View File

@@ -22,7 +22,14 @@
"swagger-ui-express": "^5.0.0"
},
"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": [
"api",