Test release signing branch and rollout gates

This commit is contained in:
Dylan M. Taylor committed 2026-11-03 00:01:15 -05:00
1 parent f76b6b82d2
commit 67cc91cfd1
1 file changed
+2
+2
View File
@@ -146,6 +146,8 @@ class SigningWiringTests(unittest.TestCase):
names = [s.get("name") for s in job["steps"]]
imported = next(i for i, u in enumerate(uses) if u.startswith("storytold/craft-common-actions/actions/import-signing-key@"))
self.assertEqual(job["steps"][imported]["with"]["key"], "${{ secrets.LINUX_SIGNING_KEY }}")
self.assertEqual(job["steps"][imported]["if"], "github.ref == 'refs/heads/release'")
self.assertEqual(job["env"]["OCI_SIGNATURES_READY"], "${{ vars.LINUX_OCI_SIGNATURES_READY }}")
self.assertLess(imported, names.index("Build the Flatpak bundle"))
upload = next(s for s in job["steps"] if s.get("uses", "").startswith("actions/upload-artifact@"))
self.assertIn("dist/release/*.oci-manifest.json", upload["with"]["path"])