@rightkit/git 0.2.20 → 0.2.21
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
package/render.test.mjs
CHANGED
|
@@ -51,11 +51,19 @@ test("rust-hybrid ci renders its pinned package manager and gate", () => {
|
|
|
51
51
|
assert.match(content, /version: 11\.24\.0/);
|
|
52
52
|
assert.match(content, /components: rustfmt, clippy/);
|
|
53
53
|
assert.doesNotMatch(content, /toolchain:/);
|
|
54
|
+
assert.match(content, /group: \$\{\{ github\.workflow \}\}-\$\{\{ github\.ref \}\}/);
|
|
55
|
+
assert.match(content, /cancel-in-progress: true/);
|
|
54
56
|
assert.match(content, /bash \.\/scripts\/gate\.sh/);
|
|
55
57
|
assert.match(content, /os: \["windows-latest"\]/);
|
|
56
58
|
assert.doesNotMatch(content, /ubuntu-latest|macos-latest/);
|
|
57
59
|
});
|
|
58
60
|
|
|
61
|
+
test("ordinary CI templates cancel superseded runs on the same ref", () => {
|
|
62
|
+
const generic = renderAllLanes(FULL_MANIFEST, "/repos/widgets").ci;
|
|
63
|
+
assert.match(generic, /group: \$\{\{ github\.workflow \}\}-\$\{\{ github\.ref \}\}/);
|
|
64
|
+
assert.match(generic, /cancel-in-progress: true/);
|
|
65
|
+
});
|
|
66
|
+
|
|
59
67
|
test("rust-hybrid ci preserves a declared macOS-only lane", () => {
|
|
60
68
|
const manifest = {
|
|
61
69
|
...FULL_MANIFEST,
|
package/templates/ci.yml
CHANGED
|
@@ -7,6 +7,9 @@ on:
|
|
|
7
7
|
branches: [main]
|
|
8
8
|
permissions:
|
|
9
9
|
contents: read
|
|
10
|
+
concurrency:
|
|
11
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
12
|
+
cancel-in-progress: true
|
|
10
13
|
# F5 fix: `private-repo-guard` carries no job-level `if`, so it always runs.
|
|
11
14
|
# Its one step's own `if` fires only when the repo is private, and `exit 1`
|
|
12
15
|
# then fails the JOB (loud, visible, non-zero) rather than the previous
|