feat(ci): allow proxied CNAMEs with other records

This commit is contained in:
William Harrison
2024-11-26 18:05:00 +08:00
committed by GitHub
parent 96f8ab25db
commit 3ce623ab28
+2 -2
View File
@@ -95,8 +95,8 @@ t("All files should have valid record types", (t) => {
t.true(validRecordTypes.includes(key), `${file}: Invalid record type: ${key}`);
});
// CNAME records cannot be combined with any other record type
if (recordKeys.includes("CNAME")) {
// CNAME records cannot be combined with any other record type unless it is proxied
if (recordKeys.includes("CNAME") && !data.proxied) {
t.is(recordKeys.length, Number(1), `${file}: CNAME records cannot be combined with other records`);
}