@decohere/ci-tools 0.0.1-dev.20261105.67 → 0.0.1-dev.20261105.70
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decohere/ci-tools",
|
|
3
|
-
"version": "0.0.1-dev.20261105.
|
|
3
|
+
"version": "0.0.1-dev.20261105.70",
|
|
4
4
|
"description": "CI utility scripts for badge generation, coverage reporting, pages artifact assembly, and GitHub API tooling",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -16,4 +16,15 @@ describe("ci.yml and the merge queue", () => {
|
|
|
16
16
|
it("runs the whole suite in the queue: the docs-only shortcut is only for pull requests", () => {
|
|
17
17
|
expect(gate).toContain('"${{ github.event_name }}" == "merge_group"');
|
|
18
18
|
});
|
|
19
|
+
|
|
20
|
+
it("makes the required check wait for every job, so a failing job can't be missed", () => {
|
|
21
|
+
const jobs = yml.slice(yml.indexOf("\njobs:"));
|
|
22
|
+
const names = [...jobs.matchAll(/^ {2}([a-z-]+):$/gm)].map((match) => match[1]);
|
|
23
|
+
const needs = /^ {2}ci:\n {4}needs: \[(.+)\]$/m.exec(jobs)?.[1].split(", ");
|
|
24
|
+
|
|
25
|
+
// `release` follows `ci`.
|
|
26
|
+
expect(needs?.toSorted()).toEqual(
|
|
27
|
+
names.filter((name) => name !== "ci" && name !== "release").toSorted(),
|
|
28
|
+
);
|
|
29
|
+
});
|
|
19
30
|
});
|