Worker unit tests, coverage floors, and an SBOM per main build
CI / Lint (eslint) (push) Successful in 17s
CI / Test (jest) (push) Successful in 18s
CI / Security (npm audit) (push) Failing after 12s
CI / Scan (secrets, workflows, shell) (push) Successful in 18s
CI / Integration (api) (push) Successful in 2m58s
CI / Lint (eslint) (pull_request) Successful in 24s
CI / Test (jest) (pull_request) Successful in 15s
CI / UI (playwright) (push) Successful in 3m11s
CI / Deploy (push) Skipped
CI / Notify (push) Skipped
CI / Security (npm audit) (pull_request) Failing after 12s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 15s
CI / Integration (api) (pull_request) Successful in 1m18s
CI / UI (playwright) (pull_request) Successful in 1m31s
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / Lint (eslint) (push) Successful in 17s
CI / Test (jest) (push) Successful in 18s
CI / Security (npm audit) (push) Failing after 12s
CI / Scan (secrets, workflows, shell) (push) Successful in 18s
CI / Integration (api) (push) Successful in 2m58s
CI / Lint (eslint) (pull_request) Successful in 24s
CI / Test (jest) (pull_request) Successful in 15s
CI / UI (playwright) (push) Successful in 3m11s
CI / Deploy (push) Skipped
CI / Notify (push) Skipped
CI / Security (npm audit) (pull_request) Failing after 12s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 15s
CI / Integration (api) (pull_request) Successful in 1m18s
CI / UI (playwright) (pull_request) Successful in 1m31s
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
- worker/worker.js exports PulseWorker and starts only when run directly (no behaviour change for the service; CT 153 needs no redeploy). - tests/worker.test.js: success, exit code and stderr, timeout kill, capacity rejection, slot release after failure, ping/pong, no sends while disconnected. - jest coverage floors (ratchet at today's levels): lib/ 90% lines and statements, 80% branches and functions; worker/ 40%. - The audit job writes a CycloneDX SBOM of production dependencies and keeps it 90 days for each main build. Part of #45 phases 3 and 4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
15f8ec4c9b
commit
38a6d1158d
6 files changed
+142
-18
No files matched your search
@@ -31,5 +31,26 @@
|
||||
"@playwright/test": "1.64.1",
|
||||
"eslint": "^8.57.1",
|
||||
"jest": "^30.5.2"
|
||||
},
|
||||
"jest": {
|
||||
"testPathIgnorePatterns": [
|
||||
"/node_modules/",
|
||||
"/tests/ui/",
|
||||
"/tests/integration/"
|
||||
],
|
||||
"coverageThreshold": {
|
||||
"./lib/": {
|
||||
"statements": 90,
|
||||
"branches": 80,
|
||||
"functions": 80,
|
||||
"lines": 90
|
||||
},
|
||||
"./worker/": {
|
||||
"statements": 40,
|
||||
"branches": 70,
|
||||
"functions": 25,
|
||||
"lines": 40
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user