ai-news-writer-ci / test (pull_request) Failing after 30s
Align workflow with BIT-2731: lint, npm test under c8 with lcov, upload coverage artifact, optional Codecov via repository secret. Document branch protection and forge URLs in README; ignore coverage output. Fix ESLint (auto-fix plus strict equality) so the lint job is green. Disable c8 global check-coverage until overall line coverage catches up; reports and artifacts remain for Codecov and local review. Signed-off-by: Maria Papoila <[email protected]>
45 lines
1.4 KiB
JSON
45 lines
1.4 KiB
JSON
{
|
|
"name": "ai-news-writer",
|
|
"version": "0.1.0",
|
|
"description": "AI-powered autonomous news writing system with RSS/social listening, journalist AI, and WordPress export",
|
|
"main": "src/index.js",
|
|
"scripts": {
|
|
"start": "node src/index.js",
|
|
"dev": "nodemon src/index.js",
|
|
"write": "node src/index.js write",
|
|
"listen": "node src/index.js listen",
|
|
"pm2:start": "pm2 start ecosystem.config.cjs",
|
|
"verify:deploy": "bash tools/verify-deploy.sh",
|
|
"wp:test": "node src/index.js wp:test",
|
|
"wp:probe-xmlrpc": "node src/index.js wp:probe-xmlrpc",
|
|
"rss:test": "node src/index.js rss:test",
|
|
"x:test": "node src/index.js x:test",
|
|
"ops:check": "bash tools/ops-check.sh",
|
|
"deploy:lxc": "bash tools/deploy-lxc.sh",
|
|
"test": "c8 --reporter=text --reporter=html --reporter=lcov node --test $(find src -type f -name '*.test.js' | sort | tr '\\n' ' ')",
|
|
"lint": "eslint src/",
|
|
"lint:fix": "eslint src/ --fix && prettier --write src/",
|
|
"format": "prettier --write ."
|
|
},
|
|
"dependencies": {
|
|
"axios": "^1.7.9",
|
|
"cheerio": "^1.0.0",
|
|
"dotenv": "^16.4.7",
|
|
"fast-xml-parser": "^4.5.1",
|
|
"node-cron": "^3.0.3",
|
|
"openai": "^4.86.2",
|
|
"rss-parser": "^3.13.0",
|
|
"slugify": "^1.6.6",
|
|
"winston": "^3.17.0"
|
|
},
|
|
"devDependencies": {
|
|
"c8": "^9.1.0",
|
|
"eslint": "^8.56.0",
|
|
"nodemon": "^3.1.9",
|
|
"prettier": "^3.2.5"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
}
|
|
}
|