fix: hand the proven release train on from a directory the artifact actions upload
CI / verify (pull_request) Successful in 1m4s
CI / infrastructure-smoke (pull_request) Successful in 38s
CI / migration-smoke (pull_request) Successful in 1m53s
CI / package-release (pull_request) Successful in 32s
CI / image-build (pull_request) Successful in 22s
CI / deploy-smoke (same-origin) (pull_request) Successful in 49s
CI / deploy-smoke (split) (pull_request) Successful in 1m39s
CI / package-publication (pull_request) Successful in 59s
CI / verify (pull_request) Successful in 1m4s
CI / infrastructure-smoke (pull_request) Successful in 38s
CI / migration-smoke (pull_request) Successful in 1m53s
CI / package-release (pull_request) Successful in 32s
CI / image-build (pull_request) Successful in 22s
CI / deploy-smoke (same-origin) (pull_request) Successful in 49s
CI / deploy-smoke (split) (pull_request) Successful in 1m39s
CI / package-publication (pull_request) Successful in 59s
The CI package-release gate passed, but the upload found no files: the artifact actions leave hidden files out, and .package-release starts with a dot. Keep the release in package-train instead, in both workflows, and test that no artifact path is hidden. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d3c62e63bf
commit
1f30c86d4f
@@ -531,12 +531,16 @@ describe("when the real registry can be written to", () => {
|
||||
expect(publishRuns).not.toMatch(/pnpm|npm (?:install|ci|run|pack)|package-release\.ts/u);
|
||||
});
|
||||
|
||||
it("uses the artifact actions that work on this Gitea, pinned by commit", async () => {
|
||||
it("uses the artifact actions that work on this Gitea, pinned by commit, on visible paths", async () => {
|
||||
for (const file of ["ci.yml", "publish-packages.yml"]) {
|
||||
const text = await readFile(path.join(repositoryRoot, ".github/workflows", file), "utf8");
|
||||
for (const use of text.matchAll(/uses: (actions\/(?:up|down)load-artifact)@(\S+)/gu)) {
|
||||
expect(use[2], `${file} ${use[1]}`).toMatch(/^[0-9a-f]{40}$/u);
|
||||
}
|
||||
// The artifact actions leave hidden files out: a path starting with a dot uploads nothing.
|
||||
for (const artifactPath of text.matchAll(/^\s+path: (\S+)$/gmu)) {
|
||||
expect(artifactPath[1], file).not.toMatch(/^\.|\/\./u);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user