Files
pulse/package.json
T
jaredandClaude Opus 5.5 fde2c49eca
CI / Lint (eslint) (push) Failing after 56s
CI / Test (jest) (push) Successful in 1m0s
CI / Security (npm audit) (push) Failing after 10s
CI / Deploy (push) Skipped
CI / Notify (push) Skipped
CI: one pipeline, deploy gated on lint, test and audit
The deploy job lived in lint.yml and needed only eslint, while jest and
npm audit ran in separate workflows. A merge that failed its tests still
deployed to production. (#45 phase 1)

- Combine everything into .gitea/workflows/ci.yml with jobs lint, test,
  audit, deploy and notify. Deploy needs all three checks and runs only
  on push to main.
- Builds are reproducible: npm ci everywhere, eslint from the lockfile
  (new `npm run lint`), and setup-node pinned to Node 20 (production).
- Actions are pinned to full commit SHAs, with the version in a comment,
  following tinker_tickets.
- Workflow permissions default to contents: read; only deploy can write
  (for its tag). A deploy-production concurrency group queues deploys
  instead of running two at once. Superseded branch runs are cancelled.
- The deploy payload now carries the sha and a timestamp, so signatures
  differ per deploy (the server verifies them in phase 2). After the
  webhook, CI waits until Pulse is serving again before tagging.
- The Matrix alert now fires for any failed job on main, for the weekly
  audit, and for every successful deploy.
- New lint step: fail on em or en dashes in Pulse-owned files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 02:02:07 -05:00

30 lines
592 B
JSON

{
"name": "pulse-server",
"version": "1.0.0",
"main": "server.js",
"scripts": {
"start": "node server.js",
"test": "jest --coverage",
"lint": "eslint --ext .js ."
},
"keywords": [],
"author": "",
"license": "ISC",
"description": "",
"dependencies": {
"axios": "^1.20.0",
"cron-parser": "^5.5.0",
"dotenv": "^17.2.3",
"ejs": "3.1.10",
"express": "^5.1.0",
"express-rate-limit": "^8.3.1",
"helmet": "8.1.0",
"mysql2": "^3.15.3",
"ws": "^8.18.3"
},
"devDependencies": {
"eslint": "^8.57.1",
"jest": "^30.5.2"
}
}