@qarmiqai/ci 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/run.js +3 -1
- package/package.json +2 -2
package/dist/run.js
CHANGED
|
@@ -52,6 +52,8 @@ export function exitCodeFor(status, onReview = "allow") {
|
|
|
52
52
|
// The verdict and its scenarios in a few plain lines, for a pipeline's log.
|
|
53
53
|
export function describeStatus(status) {
|
|
54
54
|
const head = status.verdict ? `${status.verdict}: ${status.reason ?? ""}`.trim() : `${status.state}${status.reason ? `: ${status.reason}` : ""}`;
|
|
55
|
-
|
|
55
|
+
// A scenario with no verdict is still pending while the run goes on; once the run is over, it ended without a result.
|
|
56
|
+
const none = ACTIVE_STATES.has(status.state) ? "pending" : "no result";
|
|
57
|
+
const lines = status.scenarios.map((s) => ` ${(s.verdict ?? none).padEnd(12)} ${s.ref} ${s.statement}`);
|
|
56
58
|
return [head, ...lines, `Run: ${status.run.url}`].join("\n");
|
|
57
59
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qarmiqai/ci",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Ask Qarmiq to test from any CI: start a trigger's run, wait for its verdict, and exit by go, stop or review.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
],
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "tsc -p tsconfig.json",
|
|
32
|
-
"build:action": "esbuild github-action/src/index.ts --bundle --platform=node --target=
|
|
32
|
+
"build:action": "esbuild github-action/src/index.ts --bundle --platform=node --target=node22 --format=esm --outfile=github-action/dist/index.js --legal-comments=none",
|
|
33
33
|
"typecheck": "tsc -p tsconfig.action.json",
|
|
34
34
|
"test": "vitest run",
|
|
35
35
|
"prepack": "npm run build"
|